[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 
setColumnsequence  XML
Forum Index -> Development
Author Message
dstrigel

Power User

Joined: 09/12/2010 09:23:42
Messages: 69
Offline

Hi,

We are using FIXGRIDListBinding and the amazing popup dialogue onEditColumnDetails

We create the list and set setColumnsequence with dynamic values
list.setColumnsequence( "some value from DB");

Now if you press in the popup the "Back to default!" button the preselected colums are gone...

public void onBackToDefault(ActionEvent event)
{
m_grid.setColumnsequence(null);
m_grid.setModcolumnwidths(null);
if(m_listener != null)
m_listener.reactOnClose();
}

Default for setColumnsequence should not be "null" but should be the original value.
Is there a way to switch back to the previous value?

Regards, Daniel
mreich

Power User
[Avatar]

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

A workaround would be if you override the method setColumnsequence, you may can react in a special way if the parameter is null?

regards
Markus
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Hi,

what Markus says is likely to work! ;-)

Neverthelesse, this is something where we should provide some better API...: we will add a function setDefaultColumnsequence(...) into FIXGRIDBinding. Is part of next update or on request.

Björn

Björn Müller, CaptainCasa GmbH
dstrigel

Power User

Joined: 09/12/2010 09:23:42
Messages: 69
Offline

perfect, thanks!
Daniel
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team