Column Grouping for Tree Grid [message #1700675] |
Mon, 06 July 2015 12:03 |
Anand Prasad Messages: 1 Registered: July 2015 |
Junior Member |
|
|
Hi All,
I am using Tree to display my values . I need to group few columns in the similar way that we have in the NAT tables.. I tried using the same way I did for table for tree ,but my column grouping are not displayed at all.
I am using the below code to create my column header layer,
public ILayer createColumnHeaderLayer()
{
final ColumnGroupModel columnGroupModel = new ColumnGroupModel();
columnHeaderDataLayer = new DefaultColumnHeaderDataLayer(columnHeaderDataProvider);
columnHeaderLayer = new ColumnHeaderLayer(columnHeaderDataLayer, treeLayer, treeLayer.getSelectionLayer());
ColumnGroupHeaderLayer columnGroupHeaderLayer = new ColumnGroupHeaderLayer(columnHeaderLayer, treeLayer.getSelectionLayer(), columnGroupModel);
columnGroupHeaderLayer.addColumnsIndexesToGroup("Column Group 1",3,4,5,6,7,8);
ColumnGroupHeaderLayer toolcolumnGroupHeaderLayer = new ColumnGroupHeaderLayer(columnHeaderLayer, treeLayer.getSelectionLayer(), columnGroupModel);
toolcolumnGroupHeaderLayer.addColumnsIndexesToGroup("Column Group 2",9,10,11,12,13,14);
columnGroupHeaderLayer.setRowHeight(25);
columnHeaderDataLayer.setColumnWidthByPosition(3, 10);
columnHeaderDataLayer.setColumnWidthPercentageByPosition(0, 80);
columnHeaderDataLayer.setDefaultColumnWidth(200);
columnHeaderDataLayer.setDefaultColumnWidthByPosition(0, 1000);
return columnGroupHeaderLayer;
}
Is there a issue with the above code ?
Are column groupings supported in tree?
Can you provide me a sample ?
Thanks in Advance.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04407 seconds