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

Exit Insert/Edit Mode in the Grid

4 Answers 331 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 26 Mar 2009, 03:01 PM
I am using a web control to edit a grid row.  After a successfull update or insert how do I cause the grid to exit edit/insert mode?

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Mar 2009, 04:02 AM
Hi Edward,

Try the following code snippet to achieve the desired scenario.

a) To close the edit form:
    
 
RadGrid1.EditIndexes.Clear(); 

b) To close the Insert form:
 
   RadGrid1.MasterTableView.IsItemInserted = false

Shinu
0
Edward
Top achievements
Rank 1
answered on 27 Mar 2009, 02:40 PM
Thanks the insert happens but now it is throwing an exception
"Insert item is available only when grid is in insert mode"


Any thoughts?
0
Edward
Top achievements
Rank 1
answered on 27 Mar 2009, 02:47 PM
Got it.

http://www.telerik.com/community/forums/aspnet/grid/after-insert-the-edit-form-visible.aspx

This thread helped.  Is there a forum or video that describes the architeecture of the grid in more detail?  Man Telerik has great controls but a very steep learning curve on the object model.
0
Birdie
Top achievements
Rank 1
answered on 19 Mar 2019, 07:44 AM
I found this...
AllowMultiRowEdit="False"
AllowAutomaticInserts="False"

Tags
Grid
Asked by
Edward
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Edward
Top achievements
Rank 1
Birdie
Top achievements
Rank 1
Share this question
or