I have a xamgrid which has Group by functionality and it works correctly
However the xamgrid has comboeditor and that comboeditor displays the value and is tied to id
Though the grouping works correctly, In the group by it displays the id (i.e 1/2/3) and not the value that is bound to those ids
If it possible to show the actual value and not the id
I am using this sample as a reference
Having the field as
<ig:TemplateColumn.GroupByItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding field1, Converter={StaticResource GroupByValueConverter},ConverterParameter={Binding ElementName=LayoutRoot, Path=DataContext.view1}}"></TextBlock> </StackPanel> </DataTemplate>
</ig:TemplateColumn.GroupByItemTemplate>
But for some reason it give error saying value isnt passed
Hi,
1. So, in the link you posted, you'll note that the DataContext is a type called GroupByDataContext:
http://help.infragistics.com/Help/NetAdvantage/Silverlight/2009.1/CLR3.5/html/Infragistics.Silverlight.v9.1~Infragistics.Silverlight.GroupByDataContext_members.html
Thus you can't bind to "field1" as its not a valid binding.
2. ConverterParameter doesn't support Bindings...and if it did, DataTemplates in the xamGrid can't support ElementName bindings. So you'll have to use a StaticResource to get to your ViewModel.
-SteveZ
Link for the earlier reply is http://help.infragistics.com/Help/NetAdvantage/Silverlight/2009.1/CLR3.5/html/SL_xamWebGrid_Custom_Groupby_Row_Display.html