radzenhq / radzen-blazor

Radzen Blazor is a set of 90+ free native Blazor UI components packed with DataGrid, Scheduler, Charts and robust theming including Material design and FluentUI.
https://www.radzen.com
MIT License
3.45k stars 771 forks source link

datagrid save settings example not-up-to-date #1563

Closed GregorySeifert closed 3 months ago

GregorySeifert commented 3 months ago

This page code sample seems to be obsolete: https://blazor.radzen.com/datagrid-save-settings

the JRuntime library seems to have modified its API:

var result = await JSRuntime.InvokeAsync("window.localStorage.getItem", "Settings"); => Argument2: needs to be object[]

await JSRuntime.InvokeVoidAsync("window.localStorage.setItem", "Settings", JsonSerializer.Serialize(Settings)); => function unknown

enchev commented 3 months ago

The example is definitely up to that since it's running using exactly the same code.