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

[Solved] Prevent Radgrid to Change Mode while Postback

1 Answer 135 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ajit
Top achievements
Rank 1
Ajit asked on 26 May 2009, 07:44 AM
Hi,

i have a radgrid in which i want when i click update button it won't go to Readonly mode but keep in Editable Mode until i press cancel button

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 May 2009, 09:02 AM
Hello Ajit,

You can try out the following code in the UpdateCommand after updating your row to retain the row in editmode:
c#:
 protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e) 
    { 
 
        GridEditableItem editItem = (GridEditableItem)e.Item; 
        //Update query 
 
        e.Canceled = true;         
        
    } 

Thanks
Princy.
Tags
Grid
Asked by
Ajit
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or