jQWidgets Forums

jQuery UI Widgets Forums Grid Cannot add filter

This topic contains 2 replies, has 2 voices, and was last updated by  pcasals 5 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Cannot add filter #112149

    pcasals
    Participant

    I hava a grid and I do filtering on the grid by programming. We use server-side data loading. I am using jQWidgets v7.2.0 (2019-Apr) AND Bootstrap v4.4.1

    Due to a request of a customer, the grid must inialize hidden and I must do filtering with the grid hidden.
    If I initilize the grid visible, then I can hide the grid and I can do the filtering.
    If I initialize the grid hidden, when I try t apply a filter, I get an error message saying “cannot set property filter of null”, when I do this javascript sentence:
    $(“#grid”).jqxGrid(‘addfilter’, field, filtergroup);
    If I show the grid and hide it, can apply the filter perfectly.

    Can yougive me a solutionn?

    Thanks

    Cannot add filter #112153

    Martin
    Participant

    Hello pcasals,

    This happens because the grid is not initialized, if it is hidden.
    So, you can hide the grid in the ready callback when it is already initialized.
    Please, check the following Example.

    Best Regards,
    Martin Yotov

    jQWidgets team
    https://www.jqwidgets.com

    Cannot add filter #112176

    pcasals
    Participant

    Works!! Thanks a lot.

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

You must be logged in to reply to this topic.