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

Binding Details Presenter to nested GridView

2 Answers 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 02 Jun 2010, 06:52 PM
I have a GridView with a second Grid View nested inside the Row detail template, this nested GridView then has it's own detail template.  I am getting a Binding error from the DetailsPresentor for this second item.  I am guessing this has something to do with the fact that when the application is loaded, no row is selected in the top level grid view and as a result the nested grid view to which the second Details presenter is bound does not exist.

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 03 Jun 2010, 10:21 AM
Hi Andrew,

Please give us more details about your scenario and most importantly about the way you are defining the items in xaml and the type of elements you are binding to. Are you trying to create three layer hierarchy or the second RowDetailTemplate is used for representing details?
You may use as a reference this blog post

Sincerely yours,
Maya
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
Andrew
Top achievements
Rank 1
answered on 03 Jun 2010, 02:46 PM
I took a look at the sample you provided, the difference between it and what I was having issue with was the use of the DetailsPresenter to display the details outside of the GridView.  In addition I had a second level of detail as an offshoot of the inner grid view.  So in the Blog example it would be like having a picture of the player displayed in a detail presenter for that player.  I was able to solve the problem by placing both the inner grid view AND the details presenter associated with it inside the details template for the main grid view.  This got around the scoping issue I was having.
Tags
GridView
Asked by
Andrew
Top achievements
Rank 1
Answers by
Maya
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or