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

Grid Update,Insert

4 Answers 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
pradeep k
Top achievements
Rank 1
pradeep k asked on 24 Nov 2009, 03:15 PM
Hi All,

I am doing Insert, Update in RadGrid at server side, and working fine, but i am not able to change edit mode to normal mode after update is complete.

How to change edit mode after update complete in RadGrid1_UpdateCommand event.

Please help me regarding this.


4 Answers, 1 is accepted

Sort by
0
Roland
Top achievements
Rank 1
answered on 24 Nov 2009, 03:29 PM
Try this:

grv.EditIndexes.Clear(); 

This will clear edit mode from all rows.


0
Princy
Top achievements
Rank 2
answered on 25 Nov 2009, 06:56 AM
Hello Pradeep,

The edit form should close automatically after a successful update/insert. Can you make sure that you have not set the AllowAutomaticUpdates/AllowAutomaticInserts property of the grid to true? If yes, set these properties to False. Since you are manually updating/inserting into your grid, setting the Automatic operations will prevent the edit form from closing.

   If this is not the case, then the code provided by Roland should help.

Thanks,
Princy
0
pradeep k
Top achievements
Rank 1
answered on 25 Nov 2009, 07:08 AM
Thank you for the reply,

I changed AllowAutomaticUpdates/AllowAutomaticInserts property of the grid to false, and is worked.


0
J
Top achievements
Rank 1
answered on 17 Mar 2010, 08:58 PM
Thanks Pradeep, your comment helped me.  Forgot to turn off all those 'allowautomatic' properties.

J
Tags
Grid
Asked by
pradeep k
Top achievements
Rank 1
Answers by
Roland
Top achievements
Rank 1
Princy
Top achievements
Rank 2
pradeep k
Top achievements
Rank 1
J
Top achievements
Rank 1
Share this question
or