Hello,
I am adding a row to several grids at once by adding an item to their respective collections and then rebinding the grids. I would like the grids to go into edit mode for the newly-added rows. How do I do this?
I am using InPlace editing, and advanced data-binding (NeedDataSource event).
Thanks,
Aaron
I am adding a row to several grids at once by adding an item to their respective collections and then rebinding the grids. I would like the grids to go into edit mode for the newly-added rows. How do I do this?
I am using InPlace editing, and advanced data-binding (NeedDataSource event).
Thanks,
Aaron
7 Answers, 1 is accepted
0
Hi Aaron,
I suggest you go through the following help topic which elaborates on this subject and see if it helps to achieve your goal:
Switching the Insert/Updade/Regular Modes
Best wishes,
Pavlina
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.
I suggest you go through the following help topic which elaborates on this subject and see if it helps to achieve your goal:
Switching the Insert/Updade/Regular Modes
Best wishes,
Pavlina
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.
0
abonfig
Top achievements
Rank 1
answered on 06 Jan 2010, 05:29 PM
Pavlina,
I should have specified that the "Insert" action is not coming from the grid, but from a button somewhere else on the page. So in the ASP button click event, I am adding the new items to the respective collections, and then rebinding the grid.
It works well up to this point, the grids show their newly added rows. However I would like these rows to immediately go into "edit" mode.
So I'm not sure the link that you provided really helps me.
Thanks,
Aaron
I should have specified that the "Insert" action is not coming from the grid, but from a button somewhere else on the page. So in the ASP button click event, I am adding the new items to the respective collections, and then rebinding the grid.
It works well up to this point, the grids show their newly added rows. However I would like these rows to immediately go into "edit" mode.
So I'm not sure the link that you provided really helps me.
Thanks,
Aaron
0
Hello Aaron,
Please go through the following forum thread, which discuss a similar problem and let me know if it is useful for you:
http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-add-multiple-records-in-grid.aspx
Greetings,
Pavlina
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.
Please go through the following forum thread, which discuss a similar problem and let me know if it is useful for you:
http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-add-multiple-records-in-grid.aspx
Greetings,
Pavlina
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.
0
abonfig
Top achievements
Rank 1
answered on 07 Jan 2010, 04:13 PM
Hello Pavlina,
This isn't quite what I am looking for. When user clicks an ASP button I am inserting a single row into two different grids. The problem is not getting the new rows added to the grid, or getting them to display...I am wondering how to get those new rows in both grids to immediately go into edit mode.
Thanks,
Aaron
This isn't quite what I am looking for. When user clicks an ASP button I am inserting a single row into two different grids. The problem is not getting the new rows added to the grid, or getting them to display...I am wondering how to get those new rows in both grids to immediately go into edit mode.
Thanks,
Aaron
0
Accepted
Princy
Top achievements
Rank 2
answered on 08 Jan 2010, 11:37 AM
Hi,
Take a look at the code librray link below that performs a similar functionality.
Select Last Inserted Row in the RadGrid with both Paging and Sorting enabled.
Thanks,
Princy
Take a look at the code librray link below that performs a similar functionality.
Select Last Inserted Row in the RadGrid with both Paging and Sorting enabled.
Thanks,
Princy
0
abonfig
Top achievements
Rank 1
answered on 08 Jan 2010, 04:22 PM
Thanks Princy that seems to work well. I can get the last-added row to go into edit mode. However, the update/cancel buttons in my EditCommandColumn for that newly-added row do not do anything. Clicking on them does not perform any action. So essentially my new row is stuck in edit mode.
If I click to edit an existing row, the buttons still work as expected. Thoughts?
Thanks,
Aaron
| <telerik:GridEditCommandColumn ButtonType="ImageButton" UpdateText="Save" UniqueName="EditCommandsColumn"> |
| <HeaderStyle HorizontalAlign="Center" /> |
| <ItemStyle HorizontalAlign="Center" /> |
| </telerik:GridEditCommandColumn> |
If I click to edit an existing row, the buttons still work as expected. Thoughts?
Thanks,
Aaron
0
abonfig
Top achievements
Rank 1
answered on 08 Jan 2010, 07:22 PM
Figured out the problem...I just forgot to reset the flag that causes the new row to go into edit mode. Thanks for your help.