Author |
Message |
05/10/2021 14:29:48
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 744
Offline
|
Hi,
is there an event that is triggered when the user changes the column width in a fixgrid?
Background:
I want to persist the col widths via the StreamStore
BR
Markus
|
|
|
05/10/2021 14:38:57
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5518
Offline
|
Hi Markus,
the easiest way to store the columns widths: just assign a unique FIXGRID-PERSISTID to you grid.
The column widths will be stored dependent on the user, the user is a accessed by interface IUserAccess (please check JavaDoc).
Only if you want to do something special, you have to spend more effort...
Kind regards! Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
05/10/2021 14:46:50
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 744
Offline
|
hmm, I tried this, but the widths is not stored? The columns order is stored, but not the width?
|
|
|
05/10/2021 14:54:19
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 744
Offline
|
ah, ok I have to call the onEditColumnDetails method of the grid, then the persisting is done
|
|
|
05/10/2021 16:42:15
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5518
Offline
|
Hi,
persisting is done with every roundtrip of the grid.
But: the resizing of columns does not cause a round trip itself, but only registers dirty data, which is then transferred with the next roundtrip. (Like a field without flushing.)
So if you test: you have to do something causing a roundtrip to the server after resizing (e.g. scrolling). An explicit calling of onEditColumnDetails is not required.
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
06/10/2021 05:52:45
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 744
Offline
|
Ok, thx for the explanation
|
|
|
|