Friday, May 5, 2017

How to remove the default filter controls on a ListPane in AX 2012

When you create a ListPage, the kernel automatically adds a FormFilterPaneControl with some filtering options. Many think this can't be removed or hidden, but it can!

It is added during the run method's super() call by the kernel, so using this code on the ListPage you can remove it.  The caveat is if you are using the ListPage FormTemplate, it's not possible because you're not able to override the run method.

The last closing comment I'll add is I don't know if the kernel expects the control to be there later on and if this can cause any issues or not. I just was curious if I could get it to go away.

public void run()
    int                 i;
    FormControl         formControl;

    for (i=1; i<; i++)
        formControl =;

        if (formControl is FormFilterPaneControl)

1 comment:

  1. Thank you for posting this tip Alex. I hope this post helped clear the misconception a lot of the readers might have. Do keep posting more helpful content.