[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
change sort ((size) of columns  XML
Forum Index -> Development
Author Message
rheinrichs

Power User
[Avatar]

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
CaptainCasa

Power User
[Avatar]

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
rheinrichs

Power User
[Avatar]

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
CaptainCasa

Power User
[Avatar]

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
rheinrichs

Power User
[Avatar]

Joined: 08/05/2009 10:05:36
Messages: 209
Offline

Cool, thx!
rheinrichs

Power User
[Avatar]

Joined: 08/05/2009 10:05:36
Messages: 209
Offline

Mhh, I can't find it.
Where is it?
CaptainCasa

Power User
[Avatar]

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
rheinrichs

Power User
[Avatar]

Joined: 08/05/2009 10:05:36
Messages: 209
Offline

now it works, thx
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
CaptainCasa

Power User
[Avatar]

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
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.
makaiser

Active

Joined: 27/03/2013 18:37:43
Messages: 15
Offline

[...]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team