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

How to prevent closing edit form in editable grid

2 Answers 256 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Konrad
Top achievements
Rank 1
Konrad asked on 03 Dec 2010, 10:49 AM
Hello,
I have editable grid with buttons in form:

<asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Add" : "Update" %>'
CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'


I use my validation and I show validation result outer the grid. How I can prevent closing edit form or insert form. It is possible to repopen edit form when I saved index of last open editform.

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 03 Dec 2010, 11:43 AM
Hello,


If you are performing Automatic operations, then set property value as "e.KeepInEditMode = true;"  in ItemUpdated/ItemInserted event handlers as shown in the demo.

If not using automatic operations, then ItemUpdated/ItemInserted/ItemDeleted will not fire and hence you need some other logic to perform the same.
The forum link will help you in this.
Access RadGrid's EditIndex in button click event



-Shinu.
0
Konrad
Top achievements
Rank 1
answered on 03 Dec 2010, 05:01 PM
Thanks :)
Tags
Grid
Asked by
Konrad
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Konrad
Top achievements
Rank 1
Share this question
or