The auto-sizing does not seem to take into account the sort indicator. If I click on a column to sort it, the text is cut off. I have the following settings:
<igWPF:XamDataGrid.FieldLayoutSettings> <igWPF:FieldLayoutSettings AutoGenerateFields="False" AllowClipboardOperations="Copy" FilterUIType="FilterRecord" /> </igWPF:XamDataGrid.FieldLayoutSettings> <igWPF:XamDataGrid.FieldSettings> <igWPF:FieldSettings AllowRecordFiltering="True" Height="Auto" Width="Auto" AutoSizeScope="AllRecords" AutoSizeOptions="All" /> </igWPF:XamDataGrid.FieldSettings>
Is there another setting to use?
Note:
For now I have worked around it by also setting the LabelMinWidth.
Thanks.
Hello,
Thank you for your post. I have been looking into it and I can say that this is the designed behavior and it is made due to performance optimizations. The thing you can do is to handle the XamDataGrid’s Sorting event and in the handler you can call the sorted Field’s PerformAutoSize method like this:
e.Field.PerformAutoSize()
Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
Thanks for the responses. I will probably stick with LableMinWidth for now as handling the event will mean creating a behaviour (MVVM) and could be confusing to the users.
Thank you for your feedback, I believe that other community members may benefit from this as well.
Thanks again.