Hi i am using xamdatagrid for message purpose.By default i am using date as gouing field and it is working fine.But problem is in grouping header it is displaying as Two weeks twice it should not happrn to me.I am sending the screenshot and also code which i am using.So plz verify this problem.
<igDP:XamDataGrid Name="xamDataGrid" DataContext="{Binding}" DataSource="{Binding MailFolders.SelectedFolder.Mails}" AutoFit="True"
Theme="[Current]" ActiveDataItem="{Binding MailFolders.SelectedFolder.SelectedMail, Mode=TwoWay}"
MouseDoubleClick="Message_Click" Grid.Column="1" BorderBrush="DarkGray" BorderThickness="2"
UpdateMode="OnCellChangeOrLostFocus" ScrollViewer.CanContentScroll="True" GroupByAreaLocation="AboveDataArea">
<igDP:XamDataGrid.Resources>
<Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key="Image1">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">
<Image Height="24" Width="24">
<Image.Style>
<Style>
<Style.Triggers>
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="NoPriorityNoAttachmentRead">
<Setter Property="Image.Source" Value="/images/readmail16.png" />
</DataTrigger>
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="NoPriorityAttachmentRead">
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="HighPriorityNoAttchmentRead">
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="HighPriorityAttachmentRead">
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="LowPriorityNoAttchmentRead">
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="LowPriorityAttachmentRead">
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="NoPriorityNoAttachmentUnRead">
<Setter Property="Image.Source" Value="/images/Unreadmail16.png" />
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="NoPriorityAttachmentUnRead">
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="HighPriorityNoAttchmentUnRead">
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="HighPriorityAttachmentUnRead">
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="LowPriorityNoAttchmentUnRead">
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="LowPriorityAttachmentUnRead">
</Style.Triggers>
</Style>
</Image.Style>
</Image>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key="Image2">
<Setter Property="Image.Source" Value="/images/high16.png" />
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="HighPriorityAttchmentUnRead">
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="HighPriorityAttchmentRead">
<Setter Property="Image.Source" Value="/images/Low16.png" />
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="LowPriorityAttchmentUnRead">
<DataTrigger Binding="{Binding DataItem.MailStatus}" Value="LowPriorityAttchmentRead">
<Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key="Image3">
<Image Height="16" Width="16">
<Setter Property="Image.Source" Value="/images/attach16.png" />
</Setter><!---->
<Style TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
</igDP:XamDataGrid.Resources>
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings AutoArrangeCells="Never" AutoGenerateFields="False" AllowFieldMoving="No"
HighlightAlternateRecords="False" FilterUIType="LabelIcons" MaxSelectedCells="0"
SelectionTypeRecord="Extended" SelectionTypeCell="None" FixedRecordSortOrder="Default"
SummaryDescriptionVisibility="Collapsed" />
</igDP:XamDataGrid.FieldLayoutSettings>
<igDP:XamDataGrid.FieldSettings>
<igDP:FieldSettings AllowRecordFiltering="true" FilterLabelIconDropDownType="MultiSelectExcelStyle"
FilterClearButtonVisibility="Visible" AllowCellVirtualization="True"
CellClickAction="SelectRecord" FilterEvaluationTrigger="OnCellValueChange" />
</igDP:XamDataGrid.FieldSettings>
<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout>
<igDP:FieldLayout.Fields>
<igDP:UnboundField Column="0" RowSpan="2" Height="24" Width="24">
<igDP:UnboundField.Settings>
<igDP:FieldSettings AllowEdit="False" CellValuePresenterStyle="{StaticResource Image1}" AllowRecordFiltering="False"
AllowGroupBy="False" AllowResize="False"/>
</igDP:UnboundField.Settings>
</igDP:UnboundField>
<igDP:UnboundField Column="1" Row="0" Height="24" Width="24">
<igDP:FieldSettings AllowEdit="False" CellValuePresenterStyle="{StaticResource Image2}" AllowResize="False"
AllowRecordFiltering="False" AllowGroupBy="False"/>
<igDP:UnboundField BindingPath="Subject" Label="Subject" Column="2" ColumnSpan="2" Row="0" >
<igDP:FieldSettings AllowEdit="False" EditorType="{x:Type Editors:XamTextEditor}">
<igDP:FieldSettings.EditorStyle>
<Style TargetType="{x:Type Editors:XamTextEditor}">
<Setter Property="FontSize" Value="13"/>
<Setter Property="TextWrapping" Value="Wrap"/>
</igDP:FieldSettings.EditorStyle>
</igDP:FieldSettings>
<igDP:UnboundField BindingPath="ProjectDisplay" Label="Project" Column="4" Row="0" >
<igDP:UnboundField Column="1" Row="1" Height="16" Width="16">
<igDP:FieldSettings AllowEdit="False" CellValuePresenterStyle="{StaticResource Image3}"
AllowRecordFiltering="False" AllowGroupBy="False" AllowResize="False"/>
<igDP:Field Name="DisplayDate" Label="Date" Row="1" Column="4" Width="50">
<igDP:Field.Settings>
<igDP:FieldSettings AllowEdit="False" GroupByMode="OutlookDate"/>
</igDP:Field.Settings>
</igDP:Field>
<igDP:UnboundField BindingPath="FromUser.FullName" Label="From" Row="1" Column="2" ColumnSpan="2" >
<Setter Property="FontSize" Value="13" />
<Setter Property="Foreground" Value="Gray" />
</igDP:FieldLayout.Fields>
<igDP:FieldLayout.SortedFields>
<igDP:FieldSortDescription Direction="Descending" FieldName="DisplayDate" IsGroupBy="True" />
</igDP:FieldLayout.SortedFields>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>
Hello Shankar,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Hello,
I have been looking into it your code and I created a sample project for you using it and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Looking forward for your reply.
Hi... thanks for ur interest.Actually i am displaying date field of type Date datatype and i want grouping based on date type.i am using field type as
and grouping as
Hope u understand this and solve my problem
Thank you for your post. I have been looking into it, but it seems like am missing something about your scenario, so if this is still an issue for you, could you please send me an isolated sample project, where this is reproduced, so I can investigate it further for you.