From 6c601bd07ce848477fb5812b46296a4b96046beb Mon Sep 17 00:00:00 2001 From: Hristian Stefanov Date: Wed, 4 Aug 2021 12:46:35 +0300 Subject: [PATCH 1/4] kb(grid):add kb for saving state in wasm --- components/grid/state.md | 4 ++++ .../grid-save-state-in-webassembly.md | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 knowledge-base/grid-save-state-in-webassembly.md diff --git a/components/grid/state.md b/components/grid/state.md index 7539f5cbf2..7bc8df4da7 100644 --- a/components/grid/state.md +++ b/components/grid/state.md @@ -26,6 +26,7 @@ This article contains the following sections: * [Information in the Grid State](#information-in-the-grid-state) * [Examples](#examples) * [Save and Load Grid State from Browser LocalStorage](#save-and-load-grid-state-from-browser-localstorage) + * [Save and Load Grid State in a WebAssembly application](#save-and-load-grid-state-in-a-webassembly-application) * [Set Grid Options Through State](#set-grid-options-through-state) * [Set Default (Initial) State](#set-default-initial-state) * [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 } ```` +### Save and Load Grid State in a WebAssembly application +This [knowledge base article]({%slug grid-kb-save-state-in-webassembly%}) shows one way to store the `Grid` state - through a custom controller. + ### Set Grid Options Through State 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. diff --git a/knowledge-base/grid-save-state-in-webassembly.md b/knowledge-base/grid-save-state-in-webassembly.md new file mode 100644 index 0000000000..fb9f97a78e --- /dev/null +++ b/knowledge-base/grid-save-state-in-webassembly.md @@ -0,0 +1,19 @@ +--- +title: How to save Grid state in a WebAssembly application? +description: How to save Grid state in a WebAssembly project? +page_title: Save Grid State in WASM +slug: grid-kb-save-state-in-webassembly +position: +tags: grid,state,wasm,webassembly,save +res_type: kb +--- + + +## Description + +How to save the Grid State in a WASM project? How to save the Grid State in a WebAssembly controller? + + +## Solution + +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). \ No newline at end of file From 60017c234066eafbe79ceecbc2c03addf6af5759 Mon Sep 17 00:00:00 2001 From: Hristian Stefanov Date: Wed, 4 Aug 2021 19:31:17 +0300 Subject: [PATCH 2/4] chore(grid):added fixes as per comment --- components/grid/state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/grid/state.md b/components/grid/state.md index 7bc8df4da7..5e92a26679 100644 --- a/components/grid/state.md +++ b/components/grid/state.md @@ -378,7 +378,7 @@ public class LocalStorage ```` ### Save and Load Grid State in a WebAssembly application -This [knowledge base article]({%slug grid-kb-save-state-in-webassembly%}) shows one way to store the `Grid` state - through a custom controller. +This [knowledge base article]({%slug grid-kb-save-state-in-webassembly%}) shows one way to store the `Grid` state - through a custom controller. You can also store it in the Browser's Local Storage. ### Set Grid Options Through State From e4148286b6cf4001b6e5443121396105fc1f6d62 Mon Sep 17 00:00:00 2001 From: Hristian Stefanov Date: Mon, 23 Aug 2021 00:50:24 +0300 Subject: [PATCH 3/4] chore(grid): fixed description --- components/grid/state.md | 2 +- knowledge-base/grid-save-state-in-webassembly.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/grid/state.md b/components/grid/state.md index 5e92a26679..8540fb93a8 100644 --- a/components/grid/state.md +++ b/components/grid/state.md @@ -378,7 +378,7 @@ public class LocalStorage ```` ### Save and Load Grid State in a WebAssembly application -This [knowledge base article]({%slug grid-kb-save-state-in-webassembly%}) shows one way to store the `Grid` state - through a custom controller. You can also store it in the Browser's Local Storage. +This [knowledge base article]({%slug grid-kb-save-state-in-webassembly%}) shows the ways to store the `Grid` state in a WASM project - through a custom controller and LocalStorage service. ### Set Grid Options Through State diff --git a/knowledge-base/grid-save-state-in-webassembly.md b/knowledge-base/grid-save-state-in-webassembly.md index fb9f97a78e..79d3d3610f 100644 --- a/knowledge-base/grid-save-state-in-webassembly.md +++ b/knowledge-base/grid-save-state-in-webassembly.md @@ -11,7 +11,7 @@ res_type: kb ## Description -How to save the Grid State in a WASM project? How to save the Grid State in a WebAssembly controller? +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 through a LocalStorage service? ## Solution From 390b7786ca303ea2c9d0c039b4983e0ba8754b50 Mon Sep 17 00:00:00 2001 From: Hristian Stefanov Date: Fri, 10 Sep 2021 15:40:22 +0300 Subject: [PATCH 4/4] chore(grid):improved description --- components/grid/state.md | 2 +- knowledge-base/grid-save-state-in-webassembly.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/grid/state.md b/components/grid/state.md index 8540fb93a8..8f0069192e 100644 --- a/components/grid/state.md +++ b/components/grid/state.md @@ -378,7 +378,7 @@ public class LocalStorage ```` ### Save and Load Grid State in a WebAssembly application -This [knowledge base article]({%slug grid-kb-save-state-in-webassembly%}) shows the ways to store the `Grid` state in a WASM project - through a custom controller and LocalStorage service. +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. ### Set Grid Options Through State diff --git a/knowledge-base/grid-save-state-in-webassembly.md b/knowledge-base/grid-save-state-in-webassembly.md index 79d3d3610f..01240fb855 100644 --- a/knowledge-base/grid-save-state-in-webassembly.md +++ b/knowledge-base/grid-save-state-in-webassembly.md @@ -11,7 +11,7 @@ res_type: kb ## Description -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 through a LocalStorage service? +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? ## Solution