# New RadzenDataGrid State Management

**URL:** <https://forum.radzen.com/t/new-radzendatagrid-state-management/7967>\
**Category:** Radzen.Blazor Components\
**Created:** [May 27, 2021, 1:50pm UTC](https://forum.radzen.com/t/new-radzendatagrid-state-management/7967 "2021-05-27T13:50:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soraya](https://forum.radzen.com/user_avatar/forum.radzen.com/soraya/32/6477_2.png) [@Soraya](https://forum.radzen.com/u/Soraya)\
**Post date:** [May 27, 2021, 1:50pm UTC](https://forum.radzen.com/t/new-radzendatagrid-state-management/7967/1 "2021-05-27T13:50:00Z")

</div>

Hello,

do you plan to add the possibility to save state of the RadzenDataGrid new component?

It would be nice to save (optionally and choosing what to save) the column sizes, columns positions, hidden columns, column sorts and so on, in order to allow to the users the maximum of flexibility and also it would be nice to decide where to save the state (local storage, database or maybe cookies...).

Are you planning to develop anything like that?

Thank you,

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [May 27, 2021, 1:51pm UTC](https://forum.radzen.com/t/new-radzendatagrid-state-management/7967/2 "2021-05-27T13:51:02Z")

</div>

Hi @Soraya,

We don't plan to add support for that as we believe all the information is already exposed and can be retrieved by the developer.

---

<div class="post-metadata">

**Author:** ![Jim\_Donnelly](https://forum.radzen.com/user_avatar/forum.radzen.com/jim_donnelly/32/9946_2.png) [@Jim\_Donnelly](https://forum.radzen.com/u/Jim_Donnelly)\
**Post date:** [March 11, 2022, 2:45am UTC](https://forum.radzen.com/t/new-radzendatagrid-state-management/7967/3 "2022-03-11T02:45:01Z")

</div>

Hi:

I'd also like to make the RadzenDataGrid sticky. For example I'd like to keep columns hidden that the user selects, once they leave and then return to the grid page. I was planning on saving the Visible property in Local Storage and then resetting the grid when the user navigates back to the grid page. However, it looks like the Visible property is not what I need as it it more the default and the bool? \_visible; property is set to false when the column is hidden. But that's not public so I can't use it. t

What property or how should I being doing this. The GetVisible() is internal, so can't use that.

Thanks JIm

---

<div class="post-metadata">

**Author:** ![Jim\_Donnelly](https://forum.radzen.com/user_avatar/forum.radzen.com/jim_donnelly/32/9946_2.png) [@Jim\_Donnelly](https://forum.radzen.com/u/Jim_Donnelly)\
**Post date:** [April 6, 2022, 4:11pm UTC](https://forum.radzen.com/t/new-radzendatagrid-state-management/7967/4 "2022-04-06T16:11:34Z")

</div>

Hi:

I wasn't able to get the built-in version to work for me. I wanted to save off the state and those properties are not public. I ended up writing my own component to do the same thing. I added it to a set of other customizable components in an Advanced Setting group. Think it looks pretty good

 ![image](https://forum.radzen.com/uploads/default/original/2X/3/3ac547eaed9335b410455119bb22d51e95b11f29.png)

Jim

---

<div class="post-metadata">

**Author:** ![sabina2](https://forum.radzen.com/letter_avatar_proxy/v4/letter/s/5f8ce5/32.png) [@sabina2](https://forum.radzen.com/u/sabina2)\
**Post date:** [August 2, 2022, 3:29pm UTC](https://forum.radzen.com/t/new-radzendatagrid-state-management/7967/5 "2022-08-02T15:29:11Z")

</div>

We also need the ability to save/restore grid state. We are new to Blazor development and we are trying out component libraries. Does anybody have an example of how to do that using RadzenDataGrid?

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [September 26, 2022, 7:29am UTC](https://forum.radzen.com/t/new-radzendatagrid-state-management/7967/6 "2022-09-26T07:29:03Z")

</div>

[https://blazor.radzen.com/datagrid-save-settings](https://blazor.radzen.com/datagrid-save-settings)

---

<div class="post-metadata">

**Author:** ![awalz](https://forum.radzen.com/letter_avatar_proxy/v4/letter/a/22d042/32.png) [@awalz](https://forum.radzen.com/u/awalz)\
**Post date:** [September 26, 2022, 12:37pm UTC](https://forum.radzen.com/t/new-radzendatagrid-state-management/7967/7 "2022-09-26T12:37:06Z")

</div>

Hi @enchev  
the site seems to throw an exception.

 ![image](https://forum.radzen.com/uploads/default/original/2X/c/c55f7115e78438f8e60b735eca8f422e99c7db51.png)

EDIT:  
Additional information, fist time load it worked, and I have set filter for Employee ID to greater than "2".  
When switching the site and went back, than this error occured, even after refreshing with F5

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [September 26, 2022, 12:55pm UTC](https://forum.radzen.com/t/new-radzendatagrid-state-management/7967/8 "2022-09-26T12:55:53Z")

</div>

I was able to reproduce it and we will do our best to fix this immediately!

---

<div class="post-metadata">

**Author:** ![AHarry](https://forum.radzen.com/user_avatar/forum.radzen.com/aharry/32/4887_2.png) [@AHarry](https://forum.radzen.com/u/AHarry)\
**Post date:** [October 26, 2022, 12:49pm UTC](https://forum.radzen.com/t/new-radzendatagrid-state-management/7967/9 "2022-10-26T12:49:09Z")

</div>

When trying to view the example I get this exception:

 ![image](https://forum.radzen.com/uploads/default/original/2X/9/91d3f0e68651c50592446e85a6d3eade2ea75d70.png)

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [October 26, 2022, 12:50pm UTC](https://forum.radzen.com/t/new-radzendatagrid-state-management/7967/10 "2022-10-26T12:50:51Z")

</div>

You can clear your application cache:

 ![image](https://forum.radzen.com/uploads/default/original/2X/f/fd14611ae0ffa18f5b5735b1a77ca9f2667cbb87.png)  
 ![image](https://forum.radzen.com/uploads/default/original/2X/2/224f269b1e7e12c4e254296fcc6c54b8f93b74ed.png)
