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
I am using the ClientSideEvent OnExitEditMode to validate cell values. I first want to compare the orginal value to the new value in this function.
1. How do I get the orginal value from the grid on the client side event of onExitEditMode?
2. Is there a way for me to change the text color of the edited cell if it does not match the orginal value in the client side event onExitEditMode?
Hi Jocelyn,
Here are the sample code that I made to change a text color of the edited cell with a validation and an alert to show the original value from the client side of onExitEditMode. I hope it can help.
<script language="javascript" type="text/javascript" id="WebGrid1_OnExitEditMode_1"> <!-- function WebGrid1_OnExitEditMode_1(controlId, tblName, editObject) { var WebGrid1 = ISGetObject(controlId); var cellObject = editObject.ToCellObject(); var selectedValue = cellObject.Value; if (selectedValue <= 10){ cellObject.CellElement.style.color = "Red"; } alert("Old Value is " + selectedValue); return true; } --> </script>
Thank you,Andi Santoso
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