Hi there,
I am using an editable radgrid using a form template (EditFormType="Template") . During adding of new row, right after Insert link button is clicked, the edit form (in updated mode) is displayed by default to allow the user to edit the row that was just inserted. If I am going to supress this default, how should I do it? Such that after inserting a new row, the edit form (in update mode ) should not be displayed. It should only be displayed when Add new row (InitInsert) or Edit (Update) link is clicked.
Thanks in advance.
Jun
I am using an editable radgrid using a form template (EditFormType="Template") . During adding of new row, right after Insert link button is clicked, the edit form (in updated mode) is displayed by default to allow the user to edit the row that was just inserted. If I am going to supress this default, how should I do it? Such that after inserting a new row, the edit form (in update mode ) should not be displayed. It should only be displayed when Add new row (InitInsert) or Edit (Update) link is clicked.
Thanks in advance.
Jun
5 Answers, 1 is accepted
0
ram+telerik S
Top achievements
Rank 1
answered on 16 Sep 2009, 10:02 PM
try
gridName.MasterTableView.ClearEditItems();
gridName.MasterTableView.ClearEditItems();
0
Jun
Top achievements
Rank 1
answered on 16 Sep 2009, 10:05 PM
Thanks I will try. I wonder which server side event should I put it in?
0
Princy
Top achievements
Rank 2
answered on 17 Sep 2009, 04:35 AM
Hi Jun,
You can try the code in the InsertCommand event of the grid, after inserting the record as shown below:
c#:
Thanks
Princy.
You can try the code in the InsertCommand event of the grid, after inserting the record as shown below:
c#:
| protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e) |
| { |
| // insert query |
| RadGrid1.MasterTableView.ClearEditItems(); |
| } |
Thanks
Princy.
0
Jun
Top achievements
Rank 1
answered on 17 Sep 2009, 03:12 PM
Hello.
I tried but the editform template (in update mode) is still displayed after clicking the insert link button. I have to click the cancel link button to show just the rows in the grid.
Thanks,
Jun
I tried but the editform template (in update mode) is still displayed after clicking the insert link button. I have to click the cancel link button to show just the rows in the grid.
Thanks,
Jun
0
Hi Jun,
How to switch the edit/insert modes in RadGrid you can see from the implementation in this documentation topic:
http://www.telerik.com/help/aspnet-ajax/grdswitchinginsertaddmodes.html
Best regards,
Sebastian
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
How to switch the edit/insert modes in RadGrid you can see from the implementation in this documentation topic:
http://www.telerik.com/help/aspnet-ajax/grdswitchinginsertaddmodes.html
Best regards,
Sebastian
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.