Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
Labels disappearing in XamDataGrid
posted

Hi folks,

I've got a problem occuring the XamDataGrid:

When using the Field Chooser or moving around the columns with the TextBlock in the label, either the label of the moved one, or all labels with TextBlock in it disappear and stay empty when using Field Chooser.

I need the textblock because of two loalization resources to display in some of my headers (adding name and unit for some of the labels)

Tested versions are 18.2.20182.186 and 19.1.20191.84, both contain the same behaviour.

Here is the XAML for an example:

<Window
xmlns="">schemas.microsoft.com/.../presentation"
xmlns:x="">schemas.microsoft.com/.../xaml"
xmlns:d="">schemas.microsoft.com/.../2008"
xmlns:mc="">schemas.openxmlformats.org/.../2006"
xmlns:local="clr-namespace:WpfAppInfragisticsTest"
xmlns:igDP="">infragistics.com/DataPresenter"
xmlns:igEditors="">infragistics.com/Editors"
x:Class="WpfAppInfragisticsTest.MainWindow"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<igDP:XamDataGrid BindToSampleData="True">
<igDP:XamDataGrid.FieldSettings>
<igDP:FieldSettings AllowFixing="Near" AllowEdit="False" AllowHiding="Always" AllowRecordFiltering="True" AllowLabelVirtualization="False" />
</igDP:XamDataGrid.FieldSettings>
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings HeaderPrefixAreaDisplayMode="FieldChooserButton" DataRecordSizingMode="SizedToContentAndIndividuallySizable" AllowRecordFixing="Top" AllowClipboardOperations="Copy" CopyFieldLabelsToClipboard="True" AutoGenerateFields="False" AutoFitMode="OnlyWithVisibleStarFields" />
</igDP:XamDataGrid.FieldLayoutSettings>
<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout>
<igDP:FieldLayout.Fields>
<igDP:Field Name="name" Label="name"/>
<igDP:Field Name="department" Label="dep" />
<igDP:Field Name="salary">
<igDP:Field.Label>
<TextBlock>
<Run Text="A"/>
<LineBreak/>
<Run Text="B"/>
</TextBlock>
</igDP:Field.Label>
</igDP:Field>
<igDP:Field Name="email">
<igDP:Field.Label>
<TextBlock>
<Run Text="C"/>
<LineBreak/>
<Run Text="D"/>
</TextBlock>
</igDP:Field.Label>
</igDP:Field>
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>
</Grid>
</Window>

Any idea on how to get it to work without the labels disappearing would be appreciated.

Thanks and greetings

Stefan

  • 25385
    Offline posted

    Hello Mike,

    Thank you for contacting Infragistics!

    I have logged this for further investigation with the ID 263868. I have also created a private case where I will provide you with more information.