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
1564
hierarchical set of datas ?
posted

 Hi,

 I have a hierarchical set of datas like this :

public class RadiosGenre
{
    public List<Radio> Radios;
}

and I would like to put them in the xamDataGrid... and if possibe with "lazy loading"

Is it possible and how ?

 I have try with the following code but it do not work  :

 

        <igDP:XamDataGrid x:Name="xdgGenres">
            <igDP:XamDataGrid.FieldLayoutSettings>
                <igDP:FieldLayoutSettings AutoGenerateFields="False" />
            </igDP:XamDataGrid.FieldLayoutSettings>
            <igDP:XamDataGrid.FieldLayouts>
                <igDP:FieldLayout>
                    <igDP:FieldLayout.Fields>
                        <igDP:Field Name="Title" Label="Title"/>
                        <igDP:Field Name="Radios"/>
                    </igDP:FieldLayout.Fields>
                </igDP:FieldLayout>
            </igDP:XamDataGrid.FieldLayouts>
        </igDP:XamDataGrid>

Parents
  • 8576
    Offline posted
    Hi -
     
    The XamDataGrid definitely supports the display of hierarchical data.  You can define the Fields and FieldLayouts manually as you have shown in your XAML snippet, or you can simply bind the XamDataGrid to your hierarchical data source (viathe XamDataGrid's DataSource property) and let the XamDataGrid automatically 'discover' the FieldLayouts and Fields in your data and generate the definitions for you.
     
    JoeM
     
Reply Children