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
function wcClient_OnShowDropDown(controlId, left, top, width, height) { var wcClient = ISGetObject("wcClient"); var dataView = wcClient.GetView(); if (dataView == null) { alert("Data is not created yet!"); return; } else { if (wcClient.LastQuery != "") { wcClient.HideDropDown(); dataView.Table.UserDefinedRowFilter = "[Text] like '" + wcClient.LastQuery + "%'"; //Or you can use "[Text] contains '" + wcClient.LastQuery + "'" wcClient.RebindData(null, true); } } }
Please kindly have review on the attached sample to see the result.Hope this helps. Thank you.Regards,Hans.
Thank you Hans for your quick response.
I got error message "Invalid filter expressions." when used your code. I tried both "like" and "contains", same message.
My WebCombo version is 6.0.7200.
Regards,
Luwen
Hello,Thank you for the reply.I am sorry; I forgot to mention that you should define your data type of your column.The error message occurs due to you haven’t define the data type or the filter expression doesn’t match with the column’s data type.In my sample I have defined the data type:
textColumn.Name = textColumn.ColumnName = "Text";textColumn.DataType = "System.String";
Regards,Hans.
That works beautifully. Thanks!
I saw an another issue. When you use arrow keys to navigate the grid (with CellClickAction="CellSelect"), if the column is a webcombo or dropdownlist, your first key stoke is ignored. While if the column is a textbox, your first key stoke is NOT ignored. How to make the first key stoke accepted as a "real" user input for webcombo and dropdownlist?
Thanks,
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