Clear Filter in Wijmo Grid

Posted by: johnsdy779 on 11 July 2021, 11:14 pm EST

    • Post Options:
    • Link

    Posted 11 July 2021, 11:14 pm EST

    Hi Wijmo Team,

    I want to clear my applied filter(on cloumn) when I click on Add button. How can I clear applied filter on add button click?

    https://stackblitz.com/edit/angular-us2yuk?file=src/app/app.component.ts

    Thanks

  • Posted 12 July 2021, 6:13 am EST

    Hi Wijmo Team,

    Please provide solution!

    Thanks

  • Posted 13 July 2021, 12:31 am EST

    ++ There is one more thing, If I am on 2 page of the table and I click on the Add button then I should come to first page. How can we achive this.

    Please provide solution for these things.

    Thanks

  • Posted 13 July 2021, 12:53 am EST

    Hi wijmo Team,

    Please provide a solution.

    Thanks

  • Posted 13 July 2021, 5:44 am EST

    Hi,

    In order to achieve the required functionalities, You may make use of clear() method of FlexGridFilter for clearing the applied filters and moveToFirstPage() method of collectionView to move to the first page as follows -

        this.filter.clear();
        this.grid.collectionView.moveToFirstPage();
    

    For better understanding, you may refer to the below code sample -

    https://stackblitz.com/edit/angular-nj5tjx?file=src%2Fapp%2Fapp.component.ts

    Regards

  • Posted 13 July 2021, 6:28 am EST

    Hi Sharad,

    Thanks a lot

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels