Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
IsSynchronizedWithCurrentItem and hierarchical data
posted

<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

 

 

Parents Reply Children
No Data