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

Row details on demand

2 Answers 159 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Getulio
Top achievements
Rank 1
Getulio asked on 20 Feb 2013, 03:00 PM
Hi,

I'm using GridView biding with an collection property in my view model.

Now, I need to explode row details.
The content of my row detail depends on witch cell was clicked.

I will have another GridView, inside row detail, but this GridView need to be bindend with another property in the same view model.
This property will be populated with data that depends on wich cell was selected.

Can you help me?

2 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 21 Feb 2013, 10:40 AM
Hi,

Any time some row's details get expanded or collapsed, the RowDetailsVisibilityChanging event gets fired. So that you can subscribe to it and load your data in the handler. Here is the support section about RowDetails that provides some more extensive information on this matter.

All the best,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Getulio
Top achievements
Rank 1
answered on 21 Feb 2013, 01:21 PM
Hi Ivan,

Thak you for your response.
I'm learning too much with your link.

But, I need one more help.
Row and row detail template share the same context.
In my row detail, I'm using another GridView and I want to bind this GridView with a property in view model.
How can I set ItemsSource of this GridView binding with a property in view model?

Regards,
Tags
GridView
Asked by
Getulio
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Getulio
Top achievements
Rank 1
Share this question
or