Hi there,
I am using the latest 14.2 service release for WPF.
I would like to know if there are any good example implementations of the Field Chooser as an attached behaviour.
I have done an implementation, but the field chooser button is not visible in the header prefix area.
I also force the record selector location, as this is apparently a requirement for the field chooser.
Please note: I dynamically generate the field layout during initialisation of the grid.
Thanks.
Tom
Hi Tom,
Let me know if you have any further questions.
I guess I still don't follow as to why it is not useful for commercial use cases. If you need to be able to switch off access to the field chooser, the HeaderPrefixAreaDisplayMode can be set to None and users will no longer be able to open it.
If you feel that the default field chooser is inadequate then I recommend that you submit a product idea here: http://ideas.infragistics.com. This seems like a good opportunity to help us make the field chooser better.
Hello Rob,
Thank you for the reply.
I have implemented the Field Chooser as a behaviour.
The reason is quite simple, we have various and complex business cases which require us to switch this behaviour on and off.
The simplistic example cases, as described in the attached help link, does unfortunately not assist most commercial use cases.
Thanks for the effort.
Best regards.
I'm not really sure why you need to implement the Field Chooser as an attached behavior. The XamDataGrid provides a built in field chooser for you. Just set the HeaderPrefixAreaDisplayMode property on FieldLayoutSettings to "FieldChooserButton".
http://help.infragistics.com/doc/WPF/2014.2/CLR4.0/?page=xamDataPresenter_Display_the_Field_Chooser.html