Hi
I want to group by a column that represents xamcomboeditor. When I drag drop such columns to groupby area, it displays group by text as full name of the type(including namespace), rather cell text.
Please help.
Please see the attached screenshot for the result...
Code:
<Style TargetType="{x:Type igDataPresenter:CellValuePresenter}" x:Key="ServiceDomainEditorStyle"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type igDataPresenter:CellValuePresenter}"> <controls:SelectionEditor DockPanel.Dock="Top" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Value, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" ItemsSource="{Binding Path=DataContext.Domains, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, RelativeSource = {RelativeSource FindAncestor, AncestorType= UserControl}}" DisplayMemberPath="Name" SelectedText="Name" IsEnabled="{Binding RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource DomainEditabilityToBoolConverter}}" ChangeStartedCommand="{Binding DataContext.ArticleGuiCommandHandler.EditStartedCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type igDataPresenter:XamDataGrid}}}" ChangeStartedCommandParameter="{Binding DataItem.Item}" ChangeCompletedCommand="{Binding DataContext.ArticleGuiCommandHandler.ChangeCompletedCommand, RelativeSource = {RelativeSource FindAncestor, AncestorType={x:Type igDataPresenter:XamDataGrid}}}" ChangeCompletedCommandParameter="{Binding DataItem.Item}" /> </ControlTemplate> </Setter.Value> </Setter> </Style>
In FieldLayout:
<igDataPresenter:Field Label="Domain" Name="Item.Domain" AlternateBinding="{Binding Path=Item.Item.Domain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" CellValuePresenterStyle="{StaticResource ServiceDomainEditorStyle}" GroupByMode="Text" AllowGroupBy="True"/>
Thanks,Sreeni
Hello Sreeni,,
Thank you for contacting us.
I have been looking into your issue and what I can suggest is to take a look at the following forum thread, where similar issue is discussed: http://es.infragistics.com/community/forums/t/87582.aspx. On this thread you would be able to find a sample application too.
Please do not hesitate to let me know if you have any further questions on this matter.