Closed GregorySeifert closed 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
The example is definitely up to that since it's running using exactly the same code.
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