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

Closed
opened 2026-01-29 17:51:24 +00:00 by claunia · 1 comment
Owner

Originally created by @GregorySeifert on GitHub (Jun 13, 2024).

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

Originally created by @GregorySeifert on GitHub (Jun 13, 2024). 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<string>("window.localStorage.getItem", "Settings"); => Argument2: needs to be object[] await JSRuntime.InvokeVoidAsync("window.localStorage.setItem", "Settings", JsonSerializer.Serialize<DataGridSettings>(Settings)); => function unknown
Author
Owner

@enchev commented on GitHub (Jun 13, 2024):

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

@enchev commented on GitHub (Jun 13, 2024): The example is definitely up to that since it's running using exactly the same code.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1269