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
Hi,
Im setting up a custom filter on the grid, using the "OnCustomFilter" event, and wondered if there is an easy way to perform some client side validation on the value(s) the user enters in the filter inputs on the grid?
thanks
I’d like to suggest you to utilize the “OnBeforeRequest” client side event. OnBeforeRequest client side event specifies the client side (Javascript) function that will be invoked when request action to server is about to be made.
Below is the snippet code that shows a simple sample of script that iterates through all the cells of WebGrid filter row and obtain its inner text.
<script language="javascript" type="text/javascript"> <!-- function WebGrid1_OnBeforeRequest(controlId, action) { var WebGrid1 = ISGetObject(controlId); var rootTable = WebGrid1.RootTable; var filterRowEl = rootTable.GetFilterRow(); var filterRowLength = filterRowEl.cells.length; var i = 0; for (i; i < filterRowLength; i++) { var filterText = filterRowEl.cells[i].innerText; //your validation code in here } return true; } --> </script>
Hope this helps.
thanks Yudi, just what I needed.
Glad to hear that the information helps.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
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