grid resize and reordering reset

1 Answer 44 Views
Grid
junghoon
Top achievements
Rank 1
junghoon asked on 16 Jan 2024, 04:57 AM
After resizing and reordering the grid, I create a reset button and click it to reset the columns to their initial values, but it doesn't work.

1 Answer, 1 is accepted

Sort by
0
Wissam
Telerik team
answered on 17 Jan 2024, 08:54 AM

Hello, Junghoon,

You can achieve this using the `key` property of the Grid.

In the below example, when I click on the clear button, I am updating the `key` state variable that is passed to the `key` prop, causing the Grid to re-rendering and reset the columns to their initial state:

I hope this helps, but please let me know if you have any further questions.

Regards,
Wissam
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Grid
Asked by
junghoon
Top achievements
Rank 1
Answers by
Wissam
Telerik team
Share this question
or