This is a migrated thread and some comments may be shown as answers.

How to reset query option change of grid based on switch

1 Answer 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mukesh
Top achievements
Rank 1
Mukesh asked on 11 May 2020, 09:26 AM

     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.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 11 May 2020, 01:52 PM

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.

Regards,
Stefan
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.
Tags
General Discussions
Asked by
Mukesh
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or