We are using XamGrid from Infragistics NetAdvantage for Silverlight 11.2. There is an issue with the groupby that we have. There are a couple of columns in the grid columns are bound to an object’s property(Object.Property). In any row, this column's data is not mandatory. The column key is set to Object.Property in order to show the Property in filters and and when this column is dragged for grouping, we get a NullReferenceException. I guess this is because some of the rows have the object as null. For example:
<ig:XamGrid.GroupBySettings>
<ig:GroupBySettings AllowGroupByArea="Top" />
</ig:XamGrid.GroupBySettings>
-------------------------------------------------------------------
<ig:TextColumn Key="Employee.Name" HeaderText="Name" IsReadOnly="true">
<ig:TextColumn.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding Resources.EmployeeName, Source={StaticResource LocalizedResources}}"/>
</DataTemplate>
</ig:TextColumn.HeaderTemplate>
</ig:TextColumn>
<ig:TextColumn Key="Dept.Name" HeaderText="Name" IsReadOnly="true">
<TextBlock Text="{Binding Resources.DeptName, Source={StaticResource LocalizedResources}}"/>
Can you suggest a way to have the groupby not throw the Null Reference exceptions.
Hello Arpan,
This issue has been resolved in the service release.
You can download the service release from My Keys & Downloads: https://es.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
Let me know if you have any questions.
Sincerely,ValerieDeveloper Support Engineer Infragisticswww.infragistics.com/support
Valerie,
Thanks for the reply. As you suggested, I downloaded the service release "NetAdvantage for Silverlight Line of Business 2011 Vol. 2 - Service Release" - Version 11.2.20112.2068. I compared dlls in here with the ones that I have(11.2.20112.1010) and there was no change in the dlls for the XamGrid.
Kindly suggets.