[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Event on Resizing columns in Fixgrid  XML
Forum Index -> Development
Author Message
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 701
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
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5112
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
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 701
Offline

hmm, I tried this, but the widths is not stored? The columns order is stored, but not the width?
[WWW]
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 701
Offline

ah, ok I have to call the onEditColumnDetails method of the grid, then the persisting is done
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5112
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
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 701
Offline

Ok, thx for the explanation
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team