Welcome Guest Search | Active Topics | Sign In | Register

How to supress End Edit Mode if value entered is invalid in cell at Client Side? Options
Mona3012
Posted: Friday, February 25, 2011 3:03:15 AM
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.
eo_support
Posted: Friday, February 25, 2011 8:05:48 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.