-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DataGrid] Add other sub-states to the initialState
prop
#3448
Comments
It sounds like it is a duplicate of #820 |
#820 is mainly about the new methods to imperatively store and restore the state. @cq-ubaid-khan as you saw we started small with some sub-states we knew were needed. The idea being to avoid adding to much complexity right from the start. The EDIT: Here is the current status of the sub-states asked:
|
Hmm. Thanks for you response, I understand your thoughts about the complexity as I've gone through the same kind problem in the past. However, I've implemented the solution from my own way by implementing a middle state mapping object which I can easily persist and reuse. Pasting here so anyone in the future can get some help from this.
|
initialState
prop
@flaviendelangle, do you happen to know if there is a plan to work on additional states features, such as width and order? Is it something that serves as the priority for the team? |
It's under progress, see #3816 |
Thanks for linking that PR, @flaviendelangle! I will keep an eye on it, looking forward to seeing updates regarding it! |
Duplicates
Latest version
Summary 💡
Currently the datagrid only support few properties as initial state one example
pinnedColumns
, We want it to receivecolumnsOrders
,columnsSizes
,pagination
,columnVisibility
as an initial state of grid.Support for this configuration will be useful where we save all of the datagrid settings in persistent location and later when visited on the same page we get the same settings applied on the grid automatically.
Currently in order to achieve this behavior we have to interact with the
apiRef
.Thanks.
Examples 🌈
Motivation 🔦
No response
The text was updated successfully, but these errors were encountered: