Rank: Newbie Groups: Member
Joined: 2/25/2011 Posts: 3
|
I am evaluating this Grid and i am looking it to be used like Excel. Now suppose i want to implement a scenario where value entered in a cell should be validated at client side using Javascript. 1. i used <eo:TextBoxColumn ClientSideEndEdit="OnEndEdit" DataField="XYZ" DataType="Integer" HeaderText="XYZ"> OnEndEditt function i tried to validate the value and if the value is invalid ,i have to make the cell border color Red and keep the cell in Edit Mode so that user cannot leave the cell with invalid value. So how to do that? Can i supress the Exit edit Mode during ClientSideEndEdit? Kindly update on this.
*Note i want to do it using JavaScript.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You can not keep the cell from leaving edit mode. However you can call Grid.editCell to immediately put the same cell into edit mode again. Make sure you call it inside a timer with a time delay so that the Grid can finishes its current editing cycle first.
Thanks!
|