[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 
Hide FIXGRID Columns runtime ?  XML
Forum Index -> Development
Author Message
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Hi Captain,

Is it possible for us to hide fixgrid columns runtime and show whenver the user wants to using onEditColumns?

Because for now, what we did is showed all columns and the user will have to manually hide the not needed columns using onEditColumns, but its so cluttered especially when our table has a lot of columns.

We would be glad if CC has a solution

Regards, Vincent
CaptainCasa

Power User
[Avatar]

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

...just use FIXGRIDListBinding.setColumnsequence("2;1")...

The value you pass is the semicolon-separated list of column indices to show - so it influences both the selection of columns and the sequence. So ("2;1") will show the third column first, then the second column - and no other. (counting starts at 0!).

You may check in demo workplace: Grids&Trees, COlumn Sequence and Width, Column Sequence & width.

Regards, Björn

Björn Müller, CaptainCasa GmbH
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Thanks Captain!
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team