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

On Manual Update, RadGrid not leaving EditMode

2 Answers 239 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 10 Nov 2008, 09:21 PM
I followed the code from:

http://www.telerik.com/help/aspnet-ajax/grdinsertupdatedeleteatdatabaselevel.html

And implemented an edit on a singleClick, and save on clicking another row such as:

http://demos.telerik.com/aspnet/prometheus/Grid/Examples/DataEditing/EditOnDblClick/DefaultCS.aspx

The data is saved correctly, however, the Grid does not leave Edit Mode. Once the grid the request is complete, the same row is still editable.  How do I cancel the edit mode.  (I've tried the cancelAll() and still no luck).

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 11 Nov 2008, 04:14 AM
Hello Joshua,

Have you set the AllowAutomaticUpdates property of the grid to true? If so, try setting it to false and see if this helps cancel grid's EditMode. If the issue still persists, then you can try out the following code to cancel the EditMode after editing.
cs:
 protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e) 
    { 
        // update query code goes here 
 
        RadGrid1.MasterTableView.ClearEditItems();//to clear the EditMode 
    } 

Thanks
Princy.

0
-DJ-
Top achievements
Rank 1
answered on 20 Feb 2009, 01:33 PM
Hi Princy,

I had the exact same problem, changing AllowAutomaticUpdates to False solved it.

Thanks a bunch.

Regards,
-DJ-
Tags
Grid
Asked by
Joshua
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
-DJ-
Top achievements
Rank 1
Share this question
or