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

[Solved] Commit new row and make selected item

1 Answer 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jeff Waddell
Top achievements
Rank 1
Jeff Waddell asked on 19 Aug 2011, 04:09 PM
I have a master grid and child grids.  I need to make sure that if the user is adding a new row that the row is comitted and then selected so that when the user adds a child, it is connected to the newly created parent.

So, other than calling CommitEdit() twice to commit the cell and then new row, is there a better way?

How can I make the newly entered row the selected item? 

Finally, why would the grid not by default put the first cell in focus when a new row is being added?  That is something I would think everyone would want.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 22 Aug 2011, 01:20 PM
Hello Jeff Waddell,

Generally, the edit will be committed once the focus goes to another item. Still, you may handle the RowEditEnded event and perform the logic for setting the selected item in there.
Considering the second issue, you may take a look at this article for a reference.
 

Best wishes,
Maya
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
GridView
Asked by
Jeff Waddell
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or