﻿<?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 OnAfterItemSelected function not calling after selecting an item </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-OnAfterItemSelected-function-not-calling-after-selecting-an-item/</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 OnAfterItemSelected function not calling after selecting an item </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-OnAfterItemSelected-function-not-calling-after-selecting-an-item/</link><pubDate>Fri, 20 Dec 2013 02:37:51 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebCombo</category><category>function</category><category>onafteritemselected</category><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Thank you for the information regarding the problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;I modified wcSupplier WebCombo in WebGridIntegration.aspx sample file of WebCombo Sample ("%ProgramFiles%\Intersoft Solutions\Intersoft Premier Studio 2013 R1\Samples\For ASP.NET\ISNet.WebUI.Samples\cs\WebCombo") into the following (based on the provided snippet code in the initial post of this thread).&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebCombo:WebCombo ID="wcSupplier" runat="server" UseDefaultStyle="True" DataMember="Suppliers"
    DataSourceID="ISDataSource1" DataTextField="CompanyName" DataValueField="SupplierID"
    Height="20px" Width="199px" UseCachedDataOnFirstLoad="true" Latency="10"&amp;gt;
    &amp;lt;LayoutSettings EntryMode="AutoComplete" AlwaysShowAllRowsOnDropdown="true"&amp;gt;
    &amp;lt;ClientSideEvents OnAfterItemSelected="wcSupplier_OnAfterItemSelected" /&amp;gt;
    &amp;lt;/LayoutSettings&amp;gt;
&amp;lt;/ISWebCombo:WebCombo&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;However, I was unable to replicate the problem in my local end. A video which shows the detail is enclosed as attachment. Should you find anything that I might miss during my attempt to reproduce the problem, please feel free to let me know.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;For your information, I’m using WebUI.NET Framework 3.0 build 910; WebCombo 6 build 257; and viewed the page in IE 11 browser.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Webcombo OnAfterItemSelected function not calling after selecting an item </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-OnAfterItemSelected-function-not-calling-after-selecting-an-item/</link><pubDate>Thu, 19 Dec 2013 01:52:18 GMT</pubDate><dc:creator>macedes</dc:creator><category>WebCombo</category><category>function</category><category>onafteritemselected</category><description>&lt;p&gt;Hello, iam using a Webcombo with autocomplete in a webgrid.&lt;/p&gt;
&lt;p&gt;When i enter a text and jump to the next section than the onafteritemselected function is not calling because i didn't select any item. &lt;/p&gt;
&lt;p&gt;Here is my workflow:&lt;/p&gt;
&lt;p&gt;- i enter a text in the first webcombo&lt;/p&gt;
&lt;p&gt;- jump to the next section in Webgrid before webcombo can find a result&lt;/p&gt;
&lt;p&gt;- the method onafteritemselected isn't calling  ( this is ok and not an error)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;- i delete the text from the webcombo and type the same again&lt;/p&gt;
&lt;p&gt;- wait until it finds the correct result&lt;/p&gt;
&lt;p&gt;- select the item &lt;/p&gt;
&lt;p&gt;- the function onafteritemselcted isn't calling (this is the error)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;- i delete the text again&lt;/p&gt;
&lt;p&gt;- type another text (not the same)&lt;/p&gt;
&lt;p&gt;- select the item&lt;/p&gt;
&lt;p&gt;- the function onafteritemselcted works again&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;it has to do with the same text i type after i jump to the next section before it finds the result.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;here is my webcombo:&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color: rgb(255, 252, 225); font-family: 'courier new', tahoma; font-size: 9pt;"&gt;&amp;lt;ISWebCombo:WebCombo UseCachedDataOnFirstLoad="True" ID="WebCombo1"&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;                runat="server" Height="20px" Latency="10" UseDefaultStyle="True"
                Width="50px" DataMember="PERSONAL" DataSourceID="ISDataSource1" 
                DataTextField="TRIGRAM" DataValueField="TRIGRAM" &amp;gt;
                &amp;lt;LayoutSettings EntryMode="AutoComplete" AlwaysShowAllRowsOnDropdown="true" ComboMode="MultipleColumns"
                    AllowAddItem="True" ColumnWidthDefault="200px"&amp;gt;
                    &amp;lt;ClientSideEvents  OnAfterItemSelected="WebCombo1_OnAfterItemSelected" /&amp;gt;
                &amp;lt;/LayoutSettings&amp;gt;
            &amp;lt;/ISWebCombo:WebCombo&amp;gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;here is the function:&lt;/p&gt;&lt;pre&gt; function WebCombo1_OnAfterItemSelected(controlId) {
            var WebCombo1 = ISGetObject("WebCombo1");
            var grid = ISGetObject("WebGrid1");
            grid.GetSelectedObject().ToRowObject().GetCell('NAME').SetText(WebCombo1.GetSelectedRow().cells[1].innerText, true);
            var HiddenTrigramCheck = document.getElementById("HiddenTrigramCheck");
            HiddenTrigramCheck.value = "true"
            return true;
        }&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>