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

[Solved] Row selection after insert in detail table

1 Answer 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Maxim Tairov
Top achievements
Rank 1
Maxim Tairov asked on 30 Apr 2009, 08:11 AM

Hello Telerik,

Just quick qustion from my side:

How can I set selection in new row (after insert) in Relation Table? 

I use ItemCommand for handle Insert event. I try to use e.Item.Selected = true; and e.Item.OwnerTableView.Items[selectedIndex].Selected = true; - but no effect. 

For Master table selection set very easy:

RadGrid1.SelectedRow = selectedIndex;

Please explain how can I make selection for new (inserted) row for detail table.

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 05 May 2009, 08:44 AM
Hi Maxim,

You will need to access the relevant detail table, when selecting an item, and then select it, in a manner similar to the selection of an item in the MasterTableView. Additional information on how to get the detail elements is located in the following topic.
I hope this helps.

Regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Maxim Tairov
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or