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
50
How to limit the filtering options presented to the user
posted

Hi,

Is it possible to limit the filtering options presented to the user?

For example, I'd like the user to be only able to choose 'Contains' or 'Equals', as my data source does not (yet) support other filters.

I can remove the dropdown list options programmatically, but I'd prefer a configuration option to do this.

Thanks,

Paul

  • 24671
    Verified Answer
    posted

    Hi,

    this isn't possible with an option, though you can easily hide the unwanted items with a line of jQuery code:

    example:

    $("#grid1_dd_<columnKey>").find(".ui-iggrid-filtericonstartswith").closest("li").remove();

    where <columnKey> is the column key, for instance ProductNumber. The above line will delete the "Starts With" condition from the dropdown.

    Hope it helps. Thanks. We can also consider adding a property to the filtering feature, in order to control the visible conditions. 

    Angel