# How to save Grid state in a WebAssembly application?

## Environment

<table>
    <tbody>
        <tr>
            <td>Product</td>
            <td>Grid for Blazor, <br /> TreeList for Blazor</td>
        </tr>
    </tbody>
</table>

## 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 from the browser's LocalStorage?

## Solution

The [sample app in GitHub](https://github.com/telerik/blazor-ui/tree/master/grid/save-state-in-wasm-through-controller) shows two ways to store the `GridState`:

* Through a custom controller;
* Through a custom service that calls the browser's `LocalStorage`.

## See Also

* [Grid State](https://www.telerik.com/blazor-ui/documentation/components/grid/state)
* [Save and load the Grid state from `localStorage`](https://www.telerik.com/blazor-ui/documentation/knowledge-base/grid-save-load-state-localstorage)
