Author |
Message |
27/05/2011 10:10:12
|
rheinrichs
Power User
Joined: 08/05/2009 10:05:36
Messages: 209
Offline
|
Hi!
after resorting columns of an table, there is no server-roundtripp posible.
So if use leave the applet without "click-inside", we can't store the user configuration of columns.
Is it posible to get an "flush" for resorting / resizing?
best regards
|
|
|
27/05/2011 13:42:12
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi,
yes - re-arranging the column tables does not automatically trigger a server roundtrip... - so your description is correct.
...hmm: is this a "hot topic" on your side, or just "by the way"?
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
27/05/2011 14:56:36
|
rheinrichs
Power User
Joined: 08/05/2009 10:05:36
Messages: 209
Offline
|
Hi!
We get this in a bug-report by our customer.
This time we recommend to click inside after changing the column-order.
I will ask him for priority - maybe it is only "nice to have a fix".
Best regards
|
|
|
01/06/2011 11:41:44
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi,
from next update on there is an attribute FLUSHCOLUMNUPDATES - if set tot "true" then the changes of columns sequence and/or column widths is directly flushed to the server side.
Thanks for your input +
Regards!
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
01/06/2011 12:46:00
|
rheinrichs
Power User
Joined: 08/05/2009 10:05:36
Messages: 209
Offline
|
Cool, thx!
|
|
|
07/06/2011 08:40:30
|
rheinrichs
Power User
Joined: 08/05/2009 10:05:36
Messages: 209
Offline
|
Mhh, I can't find it.
Where is it?
|
|
|
07/06/2011 18:03:24
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
...maybe you did not download 20110606 but some previous release? 20110606 was published quite late yesterday night...
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
16/06/2011 10:49:40
|
rheinrichs
Power User
Joined: 08/05/2009 10:05:36
Messages: 209
Offline
|
now it works, thx
|
|
|
27/11/2014 16:54:17
|
makaiser
Active
Joined: 27/03/2013 18:37:43
Messages: 15
Offline
|
Sorry, I don't get it. How is the attribute FLUSHCOLUMNUPDATES supposed to work?
Just a small example. A simple grid with two columns. When we change the sort order on either of them, we like to call an Action-Listener to do stuff. We tried the following but that doesn't work at all:
Code:
<t:fixgrid id="g_1" flushcolumnupdates="true" objectbinding="#{d.aaaa.bbbb}" actionListener="#{d.aaaa.onEvent}">
<t:gridcol id="g_2" text="Family name" >
<t:label id="g_3" text=".{familyName}" />
</t:gridcol>
<t:gridcol id="g_4" text="First name" >
<t:label id="g_5" text=".{firstName}" />
</t:gridcol>
</t:fixgrid>
Where to put the Action-Listener? Where should we catch the flush event?
Greetings,
Manuel
|
|
|
27/11/2014 19:26:22
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5555
Offline
|
Hi,
the grid'S action listener by default routes to the "onGridAction" method of the FIXGRIDBinding. Please do not change this. Or: if you change it, the first thing you should do, is to call "onGridAction".
The sorting is already "opened up", so that you can place own logic: please check the developer's guide (Working with Grids - there are some chapters about sorting) + the demo workplace (Section Grids & Trees), there are a couple of examples.
Regards, Björn
PS: sorting is always through the server, because the client does only know a certain part of the whole grid. FLUSHCOLUMNUPDATES is referring to column sequence/width updates.
|
Björn Müller, CaptainCasa GmbH |
|
|
28/11/2014 09:33:23
|
makaiser
Active
Joined: 27/03/2013 18:37:43
Messages: 15
Offline
|
Thanks again for the fast response. Overwriting onGridAction() and reacting on the BaseActionEventGridSort event solved our problem.
|
|
|
28/11/2014 09:34:37
|
makaiser
Active
Joined: 27/03/2013 18:37:43
Messages: 15
Offline
|
[...]
|
|
|
|