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

Keep edit mode after Update

3 Answers 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 18 Sep 2008, 08:18 AM
Hi,$0$0$0$0i'm using a RadGrid with user control for editing and inserting data.$0$0I looking for a possibility to keep the actual item in edit mode after updating. Actual after clicking update  the grid collapse and only the rad grid row without the embedded edit form is shown.$0$0$0$0$0I tried with the EditItems collection but found no solution.$0$0$0$0$0Is there a similar statement like EditItemIndex?$0$0$0$0$0Thanks in advance for help.$0$0Regards$0$0Stefan$0$0$0$0$0$0$0

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Sep 2008, 09:08 AM
Hello Stefan,

You can keep the EditForm open by setting the e.Canceled property to true in the ItemCommand/UpdateCommand.
cs:
 protected void RadGrid2_ItemCommand(object source, GridCommandEventArgs e) 
    { 
         if (e.CommandName == "Update")  
        { 
            e.Canceled = true;             
        } 
    } 

Princy.
0
Sebastian
Telerik team
answered on 18 Sep 2008, 10:09 AM
Hello guys,

You may try setting the Edit property of the corresponding updated item to true in order to keep it in edit mode and in the same time perform the update operation. Please have in mind the relation between the edited item and its parent item when using EditForms edit mode.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Stefan
Top achievements
Rank 1
answered on 19 Sep 2008, 07:29 AM
thanks for suggestions.

I will try it later and give you a feedback :)

Regards
Stefan
Tags
Grid
Asked by
Stefan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Sebastian
Telerik team
Stefan
Top achievements
Rank 1
Share this question
or