Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Column grouping(Column grouping)
Column grouping [message #778239] Wed, 11 January 2012 21:38 Go to next message
jlmueller5 is currently offline jlmueller5Friend
Messages: 8
Registered: November 2011
Junior Member

Hello All,

With the below code i can group the rows of the table with respect to any column by draging a column from the table and droping it to the GroupBox area from " treeList.setShowGroupbox(true);".



import com.pfcomponents.grid.TreeListColumn;
import com.pfcomponents.grid.TreeListView;
import com.pfcomponents.grid.events.SortEvent;
import com.pfcomponents.grid.events.SortListener;
import com.pfcomponents.grid.jface.TreeListTableViewer;



TreeListView treeList = new TreeListView(form.getBody(), SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI);
GridDataFactory.fillDefaults().grab(true, true).applyTo(treeList);
treeList.setShowGroupbox(true);
treeList.setTreeMode(false);
treeList.setShowRowHeader(false);
treeList.setShowColumnHeader(true);
treeList.addSortListener(new SortListener());
treeList.setAllowEdit(false);
treeList.setAlternateBackcolor(true); // abwechselnd

viewer = new TreeListTableViewer(treeList);
TreeListColumn col = new TreeListColumn(viewer.getTable());

for (int i = 0; i < groupOrder.length; i++) {
viewer.getTable().addGroupingColumn(groupOrder[i]);
}

Now for grouping, i want to set one column by default.

I searched in the API ( http://www.pfgrid.com/doc/com/pfcomponents/grid/class-use/TreeListView.html )too but did not find any method for this purpose.

Will appreciate any help.

Thanks,
Julia

Re: Column grouping [message #778447 is a reply to message #778239] Thu, 12 January 2012 07:47 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You'll have to ask at their forum/support channel.

Tom
Am 11.01.12 22:38, schrieb jlmueller5:
>
> Hello All,
>
> With the below code i can group the rows of the table with respect to
> any column by draging a column from the table and droping it to the
> GroupBox area from " treeList.setShowGroupbox(true);".
>
>
>
> import com.pfcomponents.grid.TreeListColumn;
> import com.pfcomponents.grid.TreeListView;
> import com.pfcomponents.grid.events.SortEvent;
> import com.pfcomponents.grid.events.SortListener;
> import com.pfcomponents.grid.jface.TreeListTableViewer;
>
>
>
> TreeListView treeList = new TreeListView(form.getBody(),
> SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI);
> GridDataFactory.fillDefaults().grab(true, true).applyTo(treeList);
> treeList.setShowGroupbox(true);
> treeList.setTreeMode(false);
> treeList.setShowRowHeader(false);
> treeList.setShowColumnHeader(true);
> treeList.addSortListener(new SortListener());
> treeList.setAllowEdit(false);
> treeList.setAlternateBackcolor(true); // abwechselnd
>
> viewer = new TreeListTableViewer(treeList);
> TreeListColumn col = new TreeListColumn(viewer.getTable());
>
> for (int i = 0; i < groupOrder.length; i++) {
> viewer.getTable().addGroupingColumn(groupOrder[i]);
> }
>
> Now for grouping, i want to set one column by default.
>
> I searched in the API (
> http://www.pfgrid.com/doc/com/pfcomponents/grid/class-use/TreeListView.html
> )too but did not find any method for this purpose.
>
> Will appreciate any help.
>
> Thanks,
> Julia
>
>
Previous Topic:Install plugins dynamically
Next Topic:[SOLVED] ClassNotFoundException
Goto Forum:
  


Current Time: Fri Apr 19 12:53:15 GMT 2024

Powered by FUDForum. Page generated in 0.02909 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top