Unplanned
Last Updated: 15 Aug 2024 12:39 by Lee
Rac
Created on: 03 Nov 2022 08:27
Category: Grid
Type: Feature Request
6
Column Field property setter in the GridState

Hello,

Currently the Id and Field properties of GridColumnState in the GridState do not have setters. As a result, these properties are not deserialized, e.g. when sending GridState information from the client to the server in WebAssembly apps.

I would like to determine the existing columns in the Grid and tailor the database request, so that the fetched data includes only the required columns.

Another possible use case is detecting outdated GridState information in localStorage, after the app has been updated and the Grid contains different columns.

3 comments
Lee
Posted on: 15 Aug 2024 12:39

Hello,

I am running into the same issue, where de-serialization is breaking when pulling the GridColumnState values from the DB.

Essentially has required me to re-work logic to use a custom type, but still makes it difficult in putting columns into the proper order.

Rac
Posted on: 18 Nov 2022 18:09

Hi Nemo,

Thanks for the reply. I have added a custom "shared" class for posting JSON to the server that can be serialized and deserialized. The "client" GridState columns expose the Field (name) to populate the custom class. You can close this request if you want.

Nemo
Posted on: 18 Nov 2022 15:34
Please add option to restore grid state based on either the Id or the Field properties. Going by the Index breaks the grid state deserialization when the properties are re-ordered in the class.