﻿<?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 - client-side</title><link>http://www.intersoftsolutions.com/Community/Tags/client-side/</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/Tags/client-side/</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><item><title>Webcombo databind to WebMethod </title><link>http://www.intersoftsolutions.com/Community/Tags/client-side/</link><pubDate>Thu, 28 Feb 2013 08:43:15 GMT</pubDate><dc:creator>sinan.biondic@gmail.com</dc:creator><category>WebCombo</category><category>DataBind</category><category>webmethod</category><category>client-side</category><description>&lt;p&gt;I am trying to bind webcombo dynamically. In the page_load event on server side i don't have the information needed to load webcombo data, i have it on client-side. I saw that it was possible to bind combo to webmethod in webservice, but is it possible to bind it to webmethod on .aspx page on which the combo itself is contained.&lt;/p&gt;
&lt;p&gt;My problem is that i need to dynamically rebind webcombo on client depending on some input. So when users clicks on different menu options I have to load different data in combo. Is that even possible, and if yes, can someone please give me a working example. I am getting data from stored procedure in sql server. Is there a way, please help!&lt;/p&gt;</description></item></channel></rss>