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
1230
Field Chooser "All Field" checkbox foreground
posted

We have implemented our own check / uncheck all checkbox years ago and since we upgraded to 16.2, there is a new "All Fields" checkbox right underneath our own and the client is not happy
two questions please
1. Can I hide the "All Fields" checkbox and its label?
2. If not, how can I change the Foreground color of the All Fields checkbox label at the top of the fieldchooser?

Parents
No Data
Reply
  • 29065
    Offline posted

    Hello,

    Removing the "All Fields" select-all checkbox can be achieved by modifying the XamDataGrid's default style. The file that contains the code needs to be modified and imported into your application. The DataPresenterGeneric_Express.xaml contains the field chooser code and can be found here:

    C:\Program Files\Infragistics\NetAdvantage XXXX.X\WPF\DefaultStyles\DataPresenter

    I took the liberty of writing a sample to test this and I attached my App.xaml which I recommend incorporate into your project's App.XAML exactly as I've demosntrated. The file contains the default code for the FieldChooser, in it's entirety, and contains the toggle check editor (which is used for the select all checkbox and the datatrigger associated it with it) that is now commented out. There are also a few namespaces needed as expected.

    Unforunately, there is no property or built-api to remove the select all checkbox. Would removing your application's select all field chooser be an option? 

    Please review my attachment below and let me know if you have any questions.

    App.zip
Children