I am using below code. But ... applied to Column header instead of apply to cell content of column. I want to apply it Text.
<igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings AllowResize="True" AllowEdit="False" CellClickAction="SelectRecord" ExpandableFieldRecordHeaderDisplayMode="NeverDisplayHeader" ExpandableFieldRecordExpansionMode="ShowExpansionIndicatorIfSiblingsExist" LabelClickAction="SortByMultipleFields" LabelTextAlignment="Center" LabelTextTrimming="CharacterEllipsis" LabelTextWrapping="NoWrap" /> </igDP:XamDataGrid.FieldSettings>
Can anyone will guide on this?
Hello Ingenito,
I am very glad that the approach I have suggested was helpful for you. If you need any further assistance please do not hesitate to ask.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
This was gold Krasimir. Thank you.
Thank you for your reply. I have been looking into it and I can suggest using the same approach as for the XamTextEditor, for adding a style for the SimpleTextBlock to the Resources of the XamMaskedEditor. Here is how you can achieve the text trimming for the XamMaskedEditor:
Xaml:
<igDP:XamDataGrid Name="xamDataGrid1" BindToSampleData="True"> <igDP:XamDataGrid.Resources> <Style TargetType="{x:Type igEditor:XamTextEditor}"> <Style.Resources> <Style TargetType="{x:Type igWindows:SimpleTextBlock}"> <Setter Property="TextTrimming" Value="CharacterEllipsis"/> </Style> </Style.Resources> </Style> <Style TargetType="{x:Type igEditor:XamMaskedEditor}" x:Key="MaskEditorTRimming"> <Style.Resources> <Style TargetType="{x:Type igWindows:SimpleTextBlock}"> <Setter Property="TextTrimming" Value="CharacterEllipsis"/> </Style> </Style.Resources> <Setter Property="Mask" Value="{}{double:12.3}"/> </Style> </igDP:XamDataGrid.Resources> <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:Field Name="name" Width="40"/> <igDP:Field Name="department" Width="40"/> <igDP:Field Name="salary" Width="40"> <igDP:Field.Settings> <igDP:FieldSettings EditorStyle="{StaticResource MaskEditorTRimming}"/> </igDP:Field.Settings> </igDP:Field> <igDP:Field Name="email" Width="40"/> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts> </igDP:XamDataGrid>
Please let me know if you need any further assistance on the matter.
Is it possible to do this with the xamMaskedEditor? We have numeric fields with formatting and it is important that if the column is too narrow to not truncate and show confusing values but instead show the ellipsis to indicate there is more there.
Hello,
I am just checking if you require any further assistance on the matter.