iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I have following code:
function success(msg) { var combo = ISGetObject('cmbGodina'); var rows = combo.GetRows(); // if(rows.length > 0){ // for(var i = 0; i < rows.length; ++i){ // rows.Remove(rows[i], true); // } // }
// combo.UpdateUI(); var dataTable = new ISDataTable(); var idColumn = new ISDataColumn(dataTable); var naziv = new ISDataColumn(dataTable); var datumDo = new ISDataColumn(dataTable); var xsltFile = new ISDataColumn(dataTable); var procFile = new ISDataColumn(dataTable); dataTable.Name = dataTable.TableName = "Root"; idColumn.Name = idColumn.ColumnName = "IdObrasca"; naziv.Name = naziv.ColumnName = "Naziv"; datumDo.Name = datumDo.ColumnName = "DatumDo"; xsltFile.Name = xsltFile.ColumnName = "XsltFile"; procFile.Name = procFile.ColumnName = "ProcFile"; dataTable.Columns.Add(idColumn); dataTable.Columns.Add(naziv); dataTable.Columns.Add(datumDo); dataTable.Columns.Add(xsltFile); dataTable.Columns.Add(procFile); $(msg).find('Table').each(function (i, row) { $(row).find('Field').text(); var dataRow = dataTable.NewRow(); dataRow.Cells.GetNamedItem("IdObrasca").Value = $(row).find('IdObrasca').text(); dataRow.Cells.GetNamedItem("Naziv").Value = $(row).find('Naziv').text(); dataRow.Cells.GetNamedItem("DatumDo").Value = $(row).find('DatumDo').text(); dataRow.Cells.GetNamedItem("XsltFile").Value = $(row).find('XsltFile').text(); dataRow.Cells.GetNamedItem("ProcFile").Value = $(row).find('ProcFile').text(); dataTable.Rows.Add(dataRow); }); combo.SetDataSource(dataTable); combo.DataBind(); combo.Render(); }
msg is xml returned by webmethod on serverside. Everything works well, but I can't clear webcombo data before i bind it to another source. the commented lines of code, when uncommented, produce error "Unable to get value of the property 'rowIndex': object is null or undefined"
this is my combo:
<iswebcombo:WebCombo ID="cmbGodina" runat="server" AllowWildCardSearch="false" Width="200" Height="20" DataValueField="IdObrasca" ViewStateStorage="None" BindingOperationMode="ClientBinding" DataTextField="Naziv"> <LayoutSettings ComboMode="MultipleColumns" EnableAnimation="False" AlwaysShowAllRowsOnDropdown="true" EntryMode="AutoComplete" StatusBoxPosition="Top" StatusBoxVisible="false"> <ClientSideEvents OnAfterItemSelected="cmbGodina_OnAfterItemSelected" /> </LayoutSettings> <Columns> <iswebcombo:WebComboColumn Name="Naziv" HeaderText="<%$GetString:{%00_pub_Name%}%>" BaseFieldName="Naziv" Width="200" /> <iswebcombo:WebComboColumn Name="DatumDo" Hidden="true" RenderOnHidden="true" BaseFieldName="DatumDo" /> <iswebcombo:WebComboColumn Name="XsltFile" Hidden="true" RenderOnHidden="true" BaseFieldName="XsltFile" /> <iswebcombo:WebComboColumn Name="ProcFile" Hidden="true" RenderOnHidden="true" BaseFieldName="ProcFile" /> </Columns> <ClientBindingSettings DataSourceType="ClientDataSource" /> </iswebcombo:WebCombo>
Hello,First of all, please forgive me for lack of understanding about the reported problem.I have a simple WebCombo that using Client Binding operation mode.This sample is show how to rebind the WebCombo to use another data source.There are two WebCombo in this sample; the data in second WebCombo is depending on the first WebCombo’s value.You could get the sample from this link.Please have review on the sample and let me know whether this sample can help you or not.Thank you very much.Regards,Hans.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname