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

RowDetails and SelectedItem

4 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tomasz Wisniewski
Top achievements
Rank 1
Tomasz Wisniewski asked on 28 Jul 2010, 11:41 AM
I'm using a GridView with RowDetails.
I would like to have SelectedItem automatically set when expand the details not just when I click on some column in the row.

Is that possible?

4 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 28 Jul 2010, 11:45 AM
Hi Tomasz Wisniewski,

 You can handle the RowDetailsVisibilityChanged event and set the SelectedItem on RadGridView in your event handler.

Sincerely yours,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tomasz Wisniewski
Top achievements
Rank 1
answered on 28 Jul 2010, 11:48 AM
But I'm using an ActionCommand which is bound to my ViewModel.
0
Accepted
Yavor Georgiev
Telerik team
answered on 28 Jul 2010, 12:18 PM
Hello Tomasz Wisniewski,

 Please find attached a sample solution that uses a Blend Behavior to handle the event. This is compatible with MVVM, as there is no code-behind or access to the data layer.

All the best,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tomasz Wisniewski
Top achievements
Rank 1
answered on 28 Jul 2010, 12:25 PM
Thanks for the reply but I've measled you a little bit.

I was using a custom hierarchy instead of typical row details template and that's why it wasn't synchronized properly.
Tags
GridView
Asked by
Tomasz Wisniewski
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Tomasz Wisniewski
Top achievements
Rank 1
Share this question
or