Skip to content

Commit 9f2e1ca

Browse files
kb(grid):add kb for saving state in wasm (#418)
* kb(grid):add kb for saving state in wasm * chore(grid):added fixes as per comment * chore(grid): fixed description * chore(grid):improved description
1 parent 99863a3 commit 9f2e1ca

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

components/grid/state.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ This article contains the following sections:
2626
* [Information in the Grid State](#information-in-the-grid-state)
2727
* [Examples](#examples)
2828
* [Save and Load Grid State from Browser LocalStorage](#save-and-load-grid-state-from-browser-localstorage)
29+
* [Save and Load Grid State in a WebAssembly application](#save-and-load-grid-state-in-a-webassembly-application)
2930
* [Set Grid Options Through State](#set-grid-options-through-state)
3031
* [Set Default (Initial) State](#set-default-initial-state)
3132
* [Get and Override User Action That Changes The Grid](#get-and-override-user-action-that-changes-the-grid)
@@ -376,6 +377,9 @@ public class LocalStorage
376377
}
377378
````
378379

380+
### Save and Load Grid State in a WebAssembly application
381+
The [knowledge base article for saving the Grid state in a WASM application]({%slug grid-kb-save-state-in-webassembly%}) explains two ways of storing the `Grid` state - through a custom controller and a custom service that calls the browser's LocalStorage.
382+
379383
### Set Grid Options Through State
380384

381385
The grid state allows you to control the behavior of the grid programmatically - you can, for example, set sorts, filteres, expand hierarhical rows, collapse groups.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: How to save Grid state in a WebAssembly application?
3+
description: How to save Grid state in a WebAssembly project?
4+
page_title: Save Grid State in WASM
5+
slug: grid-kb-save-state-in-webassembly
6+
position:
7+
tags: grid,state,wasm,webassembly,save
8+
res_type: kb
9+
---
10+
11+
12+
## Description
13+
14+
How to save the Grid State in a WASM project? How to save the Grid State in a WebAssembly through a controller? How to save the Grid State in a WebAssembly from the browser's LocalStorage?
15+
16+
17+
## Solution
18+
19+
An example is available in the following project: [https://github.com/telerik/blazor-ui/tree/master/grid/save-state-in-wasm-through-controller](https://github.com/telerik/blazor-ui/tree/master/grid/save-state-in-wasm-through-controller).

0 commit comments

Comments
 (0)