﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebCombo - WebCombo ClientSide databind </title><link>http://www.intersoftsolutions.com/Community/WebCombo/WebCombo-ClientSide-databind/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebCombo ClientSide databind </title><link>http://www.intersoftsolutions.com/Community/WebCombo/WebCombo-ClientSide-databind/</link><pubDate>Sun, 03 Mar 2013 23:55:20 GMT</pubDate><dc:creator>Hans</dc:creator><category>WebCombo</category><category>DataBind</category><category>client-side</category><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;First of all, please forgive me for lack of understanding about the reported problem.&lt;br /&gt;&lt;br /&gt;I have a simple WebCombo that using Client Binding operation mode.&lt;br /&gt;This sample is show how to rebind the WebCombo to use another data source.&lt;br /&gt;There are two WebCombo in this sample; the data in second WebCombo is depending on the first WebCombo’s value.&lt;br /&gt;&lt;br /&gt;You could get the sample from this &lt;a href="http://www.mediafire.com/?jr9abppzc6p385b"&gt;link&lt;/a&gt;.&lt;br /&gt;Please have review on the sample and let me know whether this sample can help you or not.&lt;br /&gt;&lt;br /&gt;Thank you very much.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebCombo ClientSide databind </title><link>http://www.intersoftsolutions.com/Community/WebCombo/WebCombo-ClientSide-databind/</link><pubDate>Fri, 01 Mar 2013 04:47:44 GMT</pubDate><dc:creator>sinan.biondic@gmail.com</dc:creator><category>WebCombo</category><category>DataBind</category><category>client-side</category><description>&lt;p&gt;I have following code:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;function success(msg) {
    var combo = ISGetObject('cmbGodina');
    var rows = combo.GetRows();
//    if(rows.length &amp;gt; 0){
//        for(var i = 0; i &amp;lt; rows.length; &amp;#43;&amp;#43;i){
//            rows.Remove(rows[i], true);
//        }
//    }&lt;/pre&gt;&lt;pre&gt;//    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();    
}&lt;/pre&gt;
&lt;p&gt; 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"&lt;/p&gt;
&lt;p&gt;this is my combo:&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;iswebcombo:WebCombo ID="cmbGodina" runat="server" AllowWildCardSearch="false" Width="200" 
                        Height="20" DataValueField="IdObrasca"
                        ViewStateStorage="None" BindingOperationMode="ClientBinding" DataTextField="Naziv"&amp;gt;
                        &amp;lt;LayoutSettings ComboMode="MultipleColumns" EnableAnimation="False" AlwaysShowAllRowsOnDropdown="true" 
                            EntryMode="AutoComplete" StatusBoxPosition="Top" StatusBoxVisible="false"&amp;gt;
                            &amp;lt;ClientSideEvents  OnAfterItemSelected="cmbGodina_OnAfterItemSelected" /&amp;gt;
                        &amp;lt;/LayoutSettings&amp;gt;
                        &amp;lt;Columns&amp;gt;
                            &amp;lt;iswebcombo:WebComboColumn Name="Naziv" HeaderText="&amp;lt;%$GetString:{%00_pub_Name%}%&amp;gt;" BaseFieldName="Naziv" Width="200" /&amp;gt;
                            &amp;lt;iswebcombo:WebComboColumn Name="DatumDo" Hidden="true" RenderOnHidden="true" BaseFieldName="DatumDo" /&amp;gt;
                            &amp;lt;iswebcombo:WebComboColumn Name="XsltFile" Hidden="true" RenderOnHidden="true" BaseFieldName="XsltFile" /&amp;gt;
                            &amp;lt;iswebcombo:WebComboColumn Name="ProcFile" Hidden="true" RenderOnHidden="true" BaseFieldName="ProcFile" /&amp;gt;
                        &amp;lt;/Columns&amp;gt;
                        &amp;lt;ClientBindingSettings DataSourceType="ClientDataSource" /&amp;gt;
                    &amp;lt;/iswebcombo:WebCombo&amp;gt;
&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p /&gt;</description></item></channel></rss>