hi,
I have set FilterOperandUIType="TextBox" for the xamDataGrid,
and I input some values into the filter cell, I want the field could ajdust its width automatically.
Do you have any idea?
Hello Lin,
I have been looking into your post.
You can use the AutoSizeField command of the DataPresenterCommands. This command invokes the method, which is called when the user double clicks on the Label of a Field.
More about this the DataPresentrerCommands you can find on the following link from our documentation:http://help.infragistics.com/Help/Doc/WPF/2014.2/CLR4.0/html/InfragisticsWPF4.DataPresenter.v14.2~Infragistics.Windows.DataPresenter.DataPresenterCommands_members.html.
Please do not hesitate to let me know if you have any further questions on this matter.
and I only want this autosize for filter record not all records, is this possible?
Hi,
Thank you very much.
I wouldn't use the Wrap because in our application, wrap is optional for user too choose and that't not for filter cell.
I really want this AutoSizeOptions which is set to FilterCells.
It will be better if you could tell me how to call the method which double click done so that I could manually trigger it when user input text and when the text is longer then the width of the field.
Thank you for your post!
I have been looking into your issue and have created a small sample application for you. In the sample application I have set the AutoFit property of the XamDataGrid. I have also set the AutoSizeOptions property of the FieldSettings to "FilterCells" and the AutoSizeScope to "AllRecords".
This way when the application starts the columns would be sized according to the filter cells.
Also if you want to see the entire value, that is entered in the filter I have suggest creating a style for the XamTextEditor and set the TextWrapping property to "Wrap".
Please find the attached sample application and feel free to let me know if you have any further questions on this matter.