Unplanned
Last Updated: 18 Nov 2022 18:09 by Rac
Rac
Created on: 03 Nov 2022 08:27
Category: Grid
Type: Feature Request
5
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.

2 comments
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.