iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hello, iam using a Webcombo with autocomplete in a webgrid.
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.
Here is my workflow:
- i enter a text in the first webcombo
- jump to the next section in Webgrid before webcombo can find a result
- the method onafteritemselected isn't calling ( this is ok and not an error)
- i delete the text from the webcombo and type the same again
- wait until it finds the correct result
- select the item
- the function onafteritemselcted isn't calling (this is the error)
- i delete the text again
- type another text (not the same)
- the function onafteritemselcted works again
it has to do with the same text i type after i jump to the next section before it finds the result.
here is my webcombo:
<ISWebCombo:WebCombo UseCachedDataOnFirstLoad="True" ID="WebCombo1"
runat="server" Height="20px" Latency="10" UseDefaultStyle="True" Width="50px" DataMember="PERSONAL" DataSourceID="ISDataSource1" DataTextField="TRIGRAM" DataValueField="TRIGRAM" > <LayoutSettings EntryMode="AutoComplete" AlwaysShowAllRowsOnDropdown="true" ComboMode="MultipleColumns" AllowAddItem="True" ColumnWidthDefault="200px"> <ClientSideEvents OnAfterItemSelected="WebCombo1_OnAfterItemSelected" /> </LayoutSettings> </ISWebCombo:WebCombo>
here is the function:
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; }
Thank you for the information regarding the problem.
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).
<ISWebCombo:WebCombo ID="wcSupplier" runat="server" UseDefaultStyle="True" DataMember="Suppliers" DataSourceID="ISDataSource1" DataTextField="CompanyName" DataValueField="SupplierID" Height="20px" Width="199px" UseCachedDataOnFirstLoad="true" Latency="10"> <LayoutSettings EntryMode="AutoComplete" AlwaysShowAllRowsOnDropdown="true"> <ClientSideEvents OnAfterItemSelected="wcSupplier_OnAfterItemSelected" /> </LayoutSettings> </ISWebCombo:WebCombo>
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.
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.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname