This is a migrated thread and some comments may be shown as answers.

[Solved] How to keep an item in insert/edit mode?

2 Answers 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
FreshOne
Top achievements
Rank 1
FreshOne asked on 28 Feb 2010, 03:13 PM
hi all,
on ItemInserted and ItemUpdated events we can use:
e.KeepInInsertMode = True
and
e.KeepInEditMode = True
where e is defined as 
Telerik.Web.UI.GridInsertedEventArgs
or 
Telerik.Web.UI.GridUpdatedEventArgs

but in my case i'm using InsertCommand and UpdateCommand, which use e as GridCommandEventArgs
and i need in a particular condition to keep the item in insert/edit mode, how can i do this??

thnx in advance

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 01 Mar 2010, 05:21 AM
Hello,

You could use e.Canceled= true after checking for condition in InsertCommand/UpdateCommand in order to keep item in insert/edit mode.

Regards,
Shinu.
0
FreshOne
Top achievements
Rank 1
answered on 01 Mar 2010, 07:58 AM
thnx a lot Shinu, it worked perfectly
Tags
Grid
Asked by
FreshOne
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
FreshOne
Top achievements
Rank 1
Share this question
or