MudBlazor/MudBlazor

Add state persistence for MudTable and MudDataGrid

开放

#6,726 创建于 2023年4月23日

 (2 条评论) (13 个反应) (0 位负责人)C# (1,631 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (10,394 个星标)
PR 合并指标
 (平均合并 6天 6小时) (30 天内合并 108 个 PR)

描述

Feature request type

Enhance component

Component name

MudTable, DataGrid

Is your feature request related to a problem?

I don't use the inline edit mode. Rather, when I create/edit an item, my app is redirected to an edit page where I input the item data and save. After saving, the app is routed back to the table page, but, when it happens, all the settings related to paging, sorting, etc. are lost, i.e., the table is shown back in page 1 with initial sorting settings. I've also tried to use Fluxor to persist TableState, but to no avail.

Describe the solution you'd like

Ideally there should be a property named PersistState (or something similar) similar to what Syncfusion DataGrid has, in order to allow table state to be persisted and reloaded once the component is reloaded.

P.S.: I haven't used DataGrid component yet, but it seems to not have this capability either, and I think it could apply to it as well.

Have you seen this feature anywhere else?

Syncfusion DataGrid

Describe alternatives you've considered

I tried to use Fluxor to save/retrieve state, but had no luck.

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

贡献者指南