jQWidgets Forums

jQuery UI Widgets Forums Grid prevent grid filtering

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 6 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • prevent grid filtering #101872

    nikitaso
    Participant

    how can i stop grid from filtering?

    i dont want to disable filtering, still want to show all filter controls

    i tried return false in all three places but grid is still filtering

    filter: function(cellValue, rowData, dataField, filterGroup, defaultFilterResult) {
    return false;

    },

    $(“grid”).on(“filter”,
    function(event) {
    console.log(event);
    return false;

    });

    and in datasource:
    filter: function(e) {
    return false;
    }

    prevent grid filtering #101898

    Martin
    Participant

    Hello nikitaso,

    You can achieve this behavior by using the filter property, that overrides the built-in filtering with a custom one.
    You just have to return ‘true’ instead of ‘false’, which would mean that each value fits the filtering conditions.

    Please, take a look at this Example.

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.