Hi,
We are using XamDataGrid control in our application, to which we use FieldChooserButton so that users can select few columns depending on their need. We are hiding few columns purposely, as those are not required for users. And the problem is, the columns which are hidden also appearing in the field chooser.
I have created a sample application to replicate the same. There are 5 columns Age, MyProperty, Voltage1, Voltage2, Voltage3 in a table and Voltage1 (highlighted) is hidden column. As shown below, even though Voltage1 is hidden column, it is appear in Field Chooser.
I have tried adding new filter to the FieldChooser. I am able to resolve the above problem as show below:
But, am seeing tree view in the top combobox as below, which we do not want.
Please suggest solution to resolve this issue.
Note: The infragistics version that we are using is 14.2 (14.2.20142.2024)
Hello,
Thank you for reaching out. It is expected for all Fields to appear in the FieldChooser. The AllowHiding property on the FieldSettings class can control this by deciding whether or not to appear in the Field Chooser. Please set this value to AllowFieldHiding.Never.
An example is demonstrated in our online help.
"AllowHiding" Property (FieldSettings)
Let me know if you have any questions regarding this matter.
Thanks Michael for the quick response. By setting AllowHiding property to AllowFieldHiding.Never, we are able to achieve our required control behavior.
Regards,
Srilaxmi