<igDP:XamDataGrid xmlns:igDP="http://infragistics.com/DataPresenter" Name="gridFields" GroupByAreaLocation="None" DataSource="{Binding Class1View}" Grid.Row="2" AutoFit="True" IsSynchronizedWithCurrentItem="True"> <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="Name" Label="Field"/> <igDP:Field Name="Class2View"/> </igDP:FieldLayout.Fields> </igDP:FieldLayout> <igDP:FieldLayout> <igDP:FieldLayout.Settings> <igDP:FieldLayoutSettings LabelLocation="Hidden" /> </igDP:FieldLayout.Settings> <igDP:FieldLayout.Fields> <igDP:Field Name="Name"/> </igDP:FieldLayout.Fields> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts> <igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings AutoGenerateFields="False" AllowAddNew="False" AllowDelete="False" AllowFieldMoving="No" /> </igDP:XamDataGrid.FieldLayoutSettings></igDP:XamDataGrid>
public class Class1 { ... public Class1() { m_class2View = new ListCollectionView(...); } public string Name { get; set; } public ListCollectionView Class2View { get { return m_class2View; } }}public class Class1 { ... public Class1() { m_class2View = new ListCollectionView(...); } public string Name { get; set; } public ListCollectionView Class2View { get { return m_class2View; } }}public class Class2 { ... public Class2() { m_class3View = new ListCollectionView(...); } public string Name { get; set; }}
Given something along the lines of above (where Class1View also is a ListCollectionView), it seems that CurrentItem of List1View is updated as expected, however Class2View.CurrentItem always seem to remain null.
Is there something additional that needs to be done to allow it to work also at the second level?
I'm using 9.1 version
Hello,
I had a discussion with the development team on this and this is by design. However, we are considering expanding this functionality - adding ability to set the child collection view's position when the active record changes. The other way around will not be possible at this point.
I am going to create a support case for you so that you can be notified when this is implemented and the service release for it is out.
Was any progress made on this? I really would like to be able to bind to a current item of a child collection.
After some research IsSynchronizedWithCurrentItem and hierarchical data has been determine as a new Product Idea. I have sent your Product Idea directly to our product management team. Our product team chooses new Product Ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this Product Idea is PI12050012
If you would like to follow up on your Product Idea at a later point, you may contact Developer Support management via email. Please include the reference number of your Product Idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
I also created a support ticket on your behalf (CAS-90665-DK3KZF).