﻿<?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 - onafteritemselected</title><link>http://www.intersoftsolutions.com/Community/Tags/onafteritemselected/</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/Tags/onafteritemselected/</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>