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

[Solved] Custom Data in RowDetailsTemplate

1 Answer 137 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.
bwood
Top achievements
Rank 1
bwood asked on 27 Oct 2010, 02:10 PM
When a user clicks on a GridViewToggleRowDetailsColumn to expand the row, I need to show a ListItem with custom data that is unrelated to the data that the gridview is bound to. The user also needs to be able to update that custom data in the ListItem based on its SelectedItems collection.

Is this possible?

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 27 Oct 2010, 05:01 PM
Hello ksieburg,

You are free to place absolutely anything in the row details template. Whatever you place there -- this is what will show up in the row details. Its DataContext will be automatically set to the data item of the parent row, but you can simply ignore it. So, place your List in the row details template and bind it to whatever you like.

In case you need more control on what is going on you can use the various events that row details provides. More on this you can find here.

I hope this helps. Let me know if you have any other questions.

Best wishes,
Ross
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
Tags
GridView
Asked by
bwood
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or