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>
hello ,
I tried your way
I got Two FieldLayout but there is no field for relation
that's because the DataSource that i use is Collection of object not DataTable
so how can i control the field that i want to display in the secodn tier
and could you tell me if i can get the xaml code that was generated when i set the AutoGenerateField to true
i tried your answer and I just a good small result
I got the plus button but when i pressed it I got three nested empty rows
you said :
Joe Modica "]Field definition in the parent FieldLayout
so maybe i have to define the nested properties for nested row in [NESTED FieldLayout ] ????
is this right
Notice : I use Collections of product items that include productdetailes items not DataTables
--- thanks a lot for your reply ----
Hai,
i did like what you mentioned,but here i am using entity collection.when i didn't use visibility="collapsed" i got a hierarchical structure.if i use visibility="collapsed" i was not able to get a hierarchical structure.How can i do this?
<igDP:XamDataGrid >
<igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings AutoGenerateFields="False" /> </igDP:XamDataGrid.FieldLayoutSettings> <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="Name"/> <igDP:Field Name="Type"/> <igDP:Field Name="Subcollection" Visibility="Collapsed"/> <!-- i did that relationship in SQL itself.Subcollection contains near 10 records--> </igDP:FieldLayout.Fields> </igDP:FieldLayout> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="AccountName"/> <igDP:Field Name="AccountNumber"/> </igDP:FieldLayout.Fields> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts>
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings AutoGenerateFields="False" />
</igDP:XamDataGrid.FieldLayoutSettings>
<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout.Fields> <igDP:Field Name="Name"/> <igDP:Field Name="Type"/> <igDP:Field Name="Subcollection" Visibility="Collapsed"/> <!-- i did that relationship in SQL itself.Subcollection contains near 10 records--> </igDP:FieldLayout.Fields> </igDP:FieldLayout> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="AccountName"/> <igDP:Field Name="AccountNumber"/> </igDP:FieldLayout.Fields> </igDP:FieldLayout>
<igDP:FieldLayout.Fields> <igDP:Field Name="Name"/> <igDP:Field Name="Type"/> <igDP:Field Name="Subcollection" Visibility="Collapsed"/> <!-- i did that relationship in SQL itself.Subcollection contains near 10 records--> </igDP:FieldLayout.Fields>
<igDP:FieldLayout.Fields>
<igDP:Field Name="Name"/>
<igDP:Field Name="Type"/>
<igDP:Field Name="Subcollection" Visibility="Collapsed"/> <!-- i did that relationship in SQL itself.Subcollection contains near 10 records-->
<igDP:Field Name="Subcollection" Visibility="Collapsed"/>
<!-- i did that relationship in SQL itself.Subcollection contains near 10 records-->
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
<igDP:FieldLayout>
<igDP:FieldLayout.Fields> <igDP:Field Name="AccountName"/> <igDP:Field Name="AccountNumber"/> </igDP:FieldLayout.Fields>
<igDP:Field Name="AccountNumber"/>
</igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid
</igDP:XamDataGrid>
RE: Yes - you can control whether headers appear for each level, i.e. FieldLayout, by setting the LabelLocation property on FieldLayoutSettings to Hidden.
Can I see an example in XAML how to do this...