Here is an example of setting the cell's value through the custom validation function for your need:
function myvalidation(source, value) { if (Number(value) > 10000) return true; else { var row, col; var id = source.id.substring(GridWeb1.id.length + 1, source.id.length); var row_col = id.split('#'); row = Number(row_col[1]); col = Number(row_col[0]); GridWeb1.setCellValue(row, col, ""); return false; } }
The source object is the cell. You can see that you must get the column and row number from the source object's id. And you can use the GridWeb object's setCellValue function to set the cell's value by passing the row and the column number and the value.
For client scripting details, please check the online wiki document.
Thank you.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.