How to reset query option change of grid based on switch

2 posts, 0 answers
  1. Mukesh
    Mukesh avatar
    61 posts
    Member since:
    May 2019

    Posted 11 May 2020 Link to this post

         I have a switch on my view based on that  i am loading two grid. But while switching page number are not getting change as query option remembers the same page number.

    Is there there any way to re set query options of grid when i perform switching.

  2. Stefan
    Stefan avatar
    3039 posts

    Posted 11 May 2020 Link to this post

    Hello, Mukesh,

    Yes, this can be done by resetting the page parameters in the state in the same function that switches the Grids.

    The page of the Grid depends on the take and skip parameters passed to it, and if it has to be changed those parameters have to be changed. The data has also had to be processed using those new parameters.

    If there is an issue, please share an example or at least the code used for the Grid and to switch between them.

    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top