﻿<?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 - Unbound Server and client side creation</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Unbound-Server-and-client-side-creation/</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>Unbound Server and client side creation</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Unbound-Server-and-client-side-creation/</link><pubDate>Wed, 11 May 2011 02:56:21 GMT</pubDate><dc:creator>gavin</dc:creator><category>WebCombo</category><category>Server-side</category><category>Client</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;    &lt;span title="点击可显示其他翻译" class="hps"&gt;I think I&lt;/span&gt; &lt;span title="点击可显示其他翻译" class="hps"&gt;should know&lt;/span&gt; &lt;span title="点击可显示其他翻译" class="hps"&gt;how to do it&lt;/span&gt;&lt;span title="点击可显示其他翻译"&gt;.&lt;/span&gt; &lt;span title="点击可显示其他翻译" class="hps"&gt;Thank you very much!&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Unbound Server and client side creation</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Unbound-Server-and-client-side-creation/</link><pubDate>Tue, 10 May 2011 03:03:18 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebCombo</category><category>Server-side</category><category>Client</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Deeply apologize for the late respond.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;It is recommended to set the Value property of WebComboCell in code behind instead of set it by design. This is due to the fact that the Value property accepts object data type.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to get an unbound WebCombo that simulates the behavior of a ASP.NET combo, you might want to try following approach.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebCombo:WebCombo ID="WebCombo1" runat="server" UseDefaultStyle="True" ViewStateStorage="None"
    Height="20px" Width="200px"&amp;gt;
    &amp;lt;Columns&amp;gt;
        &amp;lt;ISWebCombo:WebComboColumn Name="ContactName" Bound="False" Width="100%"&amp;gt;&amp;lt;/ISWebCombo:WebComboColumn&amp;gt;
        &amp;lt;ISWebCombo:WebComboColumn Name="ContactID" Bound="False" Hidden="True" RenderOnHidden="True" /&amp;gt;
    &amp;lt;/Columns&amp;gt;
    &amp;lt;Rows&amp;gt;
        &amp;lt;ISWebCombo:WebComboRow&amp;gt;
            &amp;lt;Cells&amp;gt;
                &amp;lt;ISWebCombo:WebComboCell Text="Andrew"&amp;gt;
                &amp;lt;/ISWebCombo:WebComboCell&amp;gt;
                &amp;lt;ISWebCombo:WebComboCell Text="Andr"&amp;gt;
                &amp;lt;/ISWebCombo:WebComboCell&amp;gt;
            &amp;lt;/Cells&amp;gt;
        &amp;lt;/ISWebCombo:WebComboRow&amp;gt;
        &amp;lt;ISWebCombo:WebComboRow Position="1"&amp;gt;
            &amp;lt;Cells&amp;gt;
                &amp;lt;ISWebCombo:WebComboCell Text="Brad"&amp;gt;
                &amp;lt;/ISWebCombo:WebComboCell&amp;gt;
                &amp;lt;ISWebCombo:WebComboCell Text="Brad"&amp;gt;
                &amp;lt;/ISWebCombo:WebComboCell&amp;gt;
            &amp;lt;/Cells&amp;gt;
        &amp;lt;/ISWebCombo:WebComboRow&amp;gt;
        &amp;lt;ISWebCombo:WebComboRow Position="2"&amp;gt;
            &amp;lt;Cells&amp;gt;
                &amp;lt;ISWebCombo:WebComboCell Text="Cindy"&amp;gt;
                &amp;lt;/ISWebCombo:WebComboCell&amp;gt;
                &amp;lt;ISWebCombo:WebComboCell Text="Cind"&amp;gt;
                &amp;lt;/ISWebCombo:WebComboCell&amp;gt;
            &amp;lt;/Cells&amp;gt;
        &amp;lt;/ISWebCombo:WebComboRow&amp;gt;
        &amp;lt;ISWebCombo:WebComboRow Position="3"&amp;gt;
            &amp;lt;Cells&amp;gt;
                &amp;lt;ISWebCombo:WebComboCell Text="Daniel"&amp;gt;
                &amp;lt;/ISWebCombo:WebComboCell&amp;gt;
                &amp;lt;ISWebCombo:WebComboCell Text="Dani"&amp;gt;
                &amp;lt;/ISWebCombo:WebComboCell&amp;gt;
            &amp;lt;/Cells&amp;gt;
        &amp;lt;/ISWebCombo:WebComboRow&amp;gt;
        &amp;lt;ISWebCombo:WebComboRow Position="4"&amp;gt;
            &amp;lt;Cells&amp;gt;
                &amp;lt;ISWebCombo:WebComboCell Text="Paul"&amp;gt;
                &amp;lt;/ISWebCombo:WebComboCell&amp;gt;
                &amp;lt;ISWebCombo:WebComboCell Text="Paul"&amp;gt;
                &amp;lt;/ISWebCombo:WebComboCell&amp;gt;
            &amp;lt;/Cells&amp;gt;
        &amp;lt;/ISWebCombo:WebComboRow&amp;gt;
        &amp;lt;ISWebCombo:WebComboRow Position="5"&amp;gt;
            &amp;lt;Cells&amp;gt;
                &amp;lt;ISWebCombo:WebComboCell Text="Ronald"&amp;gt;
                &amp;lt;/ISWebCombo:WebComboCell&amp;gt;
                &amp;lt;ISWebCombo:WebComboCell Text="Rona"&amp;gt;
                &amp;lt;/ISWebCombo:WebComboCell&amp;gt;
            &amp;lt;/Cells&amp;gt;
        &amp;lt;/ISWebCombo:WebComboRow&amp;gt;
    &amp;lt;/Rows&amp;gt;
&amp;lt;/ISWebCombo:WebCombo&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The idea is: creating a WebCombo that has two columns, ContactName column and ContactID column. While the ContactName column will be rendered, ContactID column is not going to be rendered. It will be act like a hidden column that can be used to store the ID information of the selected row.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The ID can be obtained by using:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;string ID = WebCombo1.SelectedRow.Cells[1].Text;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Please let us know your response whether this helps or not.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Unbound Server and client side creation</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Unbound-Server-and-client-side-creation/</link><pubDate>Mon, 09 May 2011 03:01:23 GMT</pubDate><dc:creator>gavin</dc:creator><category>WebCombo</category><category>Server-side</category><category>Client</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;     I also have the same problems to be solved!&lt;/p&gt;
&lt;p&gt;     And I think your questions are too slow.&lt;/p&gt;
&lt;p&gt;     If I use this code, it will raise error: &lt;span style="font-family: arial"&gt;无法从其“Value”属性的字符串表示形式“ChaELv”创建“System.Object”类型的对象。&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebCombo:WebComboCell Text="差额率" Value="ChaELv"&amp;gt;                      &amp;lt;/ISWebCombo:WebComboCell&amp;gt;&lt;/pre&gt;

&lt;p&gt; &lt;/p&gt;
&lt;div lang="undefined" _msthash="76077963"&gt;Tanks for the reply!&lt;/div&gt;
&lt;div lang="undefined" _msthash="76077963"&gt; &lt;/div&gt;</description></item><item><title>Unbound Server and client side creation</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Unbound-Server-and-client-side-creation/</link><pubDate>Wed, 17 Feb 2010 03:48:38 GMT</pubDate><dc:creator>twor</dc:creator><category>WebCombo</category><category>Server-side</category><category>Client</category><description>&lt;p&gt;Hello Yudi,&lt;/p&gt;
&lt;p&gt;I think you just answered on of my questions. &lt;/p&gt;
&lt;p&gt;In unbound mode/ client side, the webcombo.Value property is empty, that meaning you cannot simulate the behaviour of a asp.net combo in client side (getting the text/value).&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Tanks for the reply&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Ricardo&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Unbound Server and client side creation</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Unbound-Server-and-client-side-creation/</link><pubDate>Tue, 16 Feb 2010 04:37:35 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebCombo</category><category>Server-side</category><category>Client</category><description>&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;If you wish to have unbound WebCombo that has different text and value for each of the row, I suggest you to use PopulateUnboundData() method. By using this method, after user selects any text or value from WebCombo, you can check the selected text or value by using following line: WebCombo1.Text or WebCombo1.Value.&lt;/span&gt; 
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;You can add the script below in order to create unbound WebCombo from client side.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;script language="javascript" type="text/javascript"&amp;gt;
    &amp;lt;!--
    function Button1_onclick() {
        var WebCombo1 = ISGetObject("WebCombo1");
        var rows = WebCombo1.GetRows();
        var newRow = WebCombo1.NewRow("ROW0");
        var cells = newRow.GetCells();

        cells.GetNamedItem("Column0").Text = "item 1";
        cells.GetNamedItem("Column1").Text = "1";
        rows.Add(newRow);

        WebCombo1.UpdateUI();

        return true;
    }
    --&amp;gt;
&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;lt;ISWebCombo:WebCombo ID="WebCombo1" runat="server" UseDefaultStyle="true"&amp;gt;
    &amp;lt;Columns&amp;gt;
        &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="Column0" Bound="False"
            HeaderText="Column0" Name="Column0" /&amp;gt;
        &amp;lt;ISWebCombo:WebComboColumn BaseFieldName="Column1" Bound="False"
            HeaderText="Column1" Name="Column1" /&amp;gt;
    &amp;lt;/Columns&amp;gt;
    &amp;lt;LayoutSettings ComboMode="MultipleColumns"&amp;gt;
    &amp;lt;/LayoutSettings&amp;gt;
&amp;lt;/ISWebCombo:WebCombo&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;When using the javascript, after user selects any text from WebCombo, WebCombo1.Text will returns the selected text and WebCombo1.Value will return empty string (since it is unbound WebCombo)&lt;/span&gt; &lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt; &lt;/p&gt;</description></item><item><title>Unbound Server and client side creation</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Unbound-Server-and-client-side-creation/</link><pubDate>Mon, 15 Feb 2010 04:36:53 GMT</pubDate><dc:creator>twor</dc:creator><category>WebCombo</category><category>Server-side</category><category>Client</category><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;That takes care of the server side part.&lt;/p&gt;
&lt;p&gt;How about the client side creation of an unbound webcombo with differente text and value?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Tanks&lt;/p&gt;</description></item><item><title>Unbound Server and client side creation</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Unbound-Server-and-client-side-creation/</link><pubDate>Mon, 15 Feb 2010 03:45:46 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebCombo</category><category>Server-side</category><category>Client</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to have unbound WebCombo that has different text and value for each row, I suggest you to use the “PopulateUnboundData” method. You may check MultipleSelection_Unbound.aspx reference sample file in WebComboSamples project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Unbound Server and client side creation</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Unbound-Server-and-client-side-creation/</link><pubDate>Fri, 12 Feb 2010 12:16:35 GMT</pubDate><dc:creator>twor</dc:creator><category>WebCombo</category><category>Server-side</category><category>Client</category><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Im trying a cenario with webcombo box, and til now a could get all running correctly.&lt;/p&gt;
&lt;p&gt;I was wondering if someone could give me an example of a unboud combo that gets its rows added in client side and another example in server side.&lt;/p&gt;
&lt;p&gt;But i want this example of data:&lt;/p&gt;
&lt;p&gt;text: item 1, value:1&lt;/p&gt;
&lt;p&gt;text: item 2, value:2&lt;/p&gt;
&lt;p&gt;and then i wanto to be able in client side and server side to get the onselecteditem the value of combo.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Can anyone help me?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Tanks&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>