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,
We are looking into enforcing validations for row editing on WebGrid. We are thinking along the lines of:
- Required entry
- String length range
- Data Type Check
- Range (min, max values)
- Regular Expressions
- Compare operations (equal, not equal, greather than, etc).
It looks like the only real validation supported by WebGrid is 'Required' and for everything else we should do some sort of custom handling on the onRowValidate event. Is this correct? Is there some other event/feature that we should look into? We have some kind of error panel control where every error message should be displayed.
Regards
For row validation in WebGrid, you are correct, please use the OnRowValidate event to handle any row validation that you will require.
An article titled "How-to: Validate that a selected column cannot be empty when adding a new row using OnRowValidate" in the WebGrid documentation has already been provided for handling an empty column during row insertion. The article handle the error by showing an alert message when the validation fails. In your case, you will need to update the error panel control if the validation fails.
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