I have a xamGrid bound to a collection which comes from an Odata service. The query returns a collection of teens and a teen has a property called events which is a collection of events the teen attended. How do I get the xamGrid to display the heirarchy..
Here is the xaml for the grid
<ig:XamGrid ItemsSource="{Binding}" Name="TeenInfoesXamGrid" AutoGenerateColumns="False">
<ig:XamGrid.SummaryRowSettings>
<ig:SummaryRowSettings AllowSummaryRow="Bottom" SummaryExecution="AfterFilteringBeforePaging" />
</ig:XamGrid.SummaryRowSettings>
<ig:XamGrid.SelectionSettings>
<ig:SelectionSettings CellClickAction="SelectRow" />
</ig:XamGrid.SelectionSettings>
<ig:XamGrid.RowSelectorSettings>
<ig:RowSelectorSettings Visibility="Visible" />
</ig:XamGrid.RowSelectorSettings>
<ig:XamGrid.GroupBySettings>
<ig:GroupBySettings AllowGroupByArea="Top" ExpansionIndicatorVisibility="Visible" />
</ig:XamGrid.GroupBySettings>
<ig:XamGrid.FixedColumnSettings>
<ig:FixedColumnSettings AllowFixedColumns="Indicator" />
</ig:XamGrid.FixedColumnSettings>
<ig:XamGrid.FilteringSettings>
<ig:FilteringSettings AllowFiltering="FilterRowTop" AllowFilterRow="Top" />
</ig:XamGrid.FilteringSettings>
<ig:XamGrid.ColumnMovingSettings>
<ig:ColumnMovingSettings AllowColumnMoving="Immediate" />
</ig:XamGrid.ColumnMovingSettings>
<ig:XamGrid.ColumnChooserSettings>
<ig:ColumnChooserSettings AllowHideColumnIcon="False" AllowHiddenColumnIndicator="False" />
</ig:XamGrid.ColumnChooserSettings>
<ig:XamGrid.PagerSettings>
<ig:PagerSettings AllowPaging="Both" PageSize="20" DisplayPagerWhenOnlyOnePage="False" />
</ig:XamGrid.PagerSettings>
<ig:XamGrid.ClipboardSettings>
<ig:ClipboardSettings AllowCopy="True" CopyType="SelectedCells" />
</ig:XamGrid.ClipboardSettings>
<ig:XamGrid.Columns>
<ig:TextColumn Key="firstName" />
<ig:TextColumn Key="lastName" />
<ig:TextColumn Key="birthdate" />
<ig:TextColumn Key="ChapterName" />
<ig:TextColumn Key="city" />
<ig:TextColumn Key="state" />
<ig:TextColumn Key="zipCode" />
<ig:TextColumn Key="grade" />
<ig:TextColumn Key="gender" />
<ig:TextColumn Key="HomePhone" />
<ig:TextColumn Key="CellPhone" />
<ig:TextColumn Key="schoolName" />
</ig:XamGrid.Columns>
</ig:XamGrid>
Hi,
In the code above the AutoGenerateColumns property of the XamGrid is set to False, but there is no ColumnLayout defined in the Columns collection.
Check this article in the online documentation to see how to define hierarchical layouts - http://help.infragistics.com/NetAdvantage/Silverlight/2011.1/CLR4.0/?page=xamGrid_Defining_Hierarchical_Layouts.html
HTH