Programmatic Column Freezing [message #1386068] |
Fri, 13 June 2014 10:29 |
Rajesh Arumugam Messages: 24 Registered: October 2013 |
Junior Member |
|
|
Hi Experts,
In my Nattable, i need to freeze one column by default programmatically. I am doing this as follows :
nattable.doCommand(new FreezeColumnCommand(bodyLayerStack,2));
and my bodyLayerStack looks like this :
selectionLayer = new SelectionLayer(baseLayer);
viewPortLayer = new ViewPortLayer(selectionLayer);
freezeLayer = new FreezeLayer(selectionLayer);
compostiteFreezeLayer = new CompositeFreezeLayer(freezeLayer, viewportLayer,selectionLayer);
setunderLyingLayer(compostiteFreezeLayer);
This works fine when my nattable have single level column header. But the same is not working when my nattable have multi-level column grouping.
Note : both the nattable shares same bodylayerstack.
The issue is, when nattable contains multilevel column group header - its not showing my 1st row in bodylayer.
This nattable contains multi-level column header, ie 3 level. Programmatic freeze made 1st row hide.
This nattable contains normal column header, ie single level , here its working fine.
What is the mistake here? Please help me on this.
-
Attachment: Freeze1.PNG
(Size: 11.02KB, Downloaded 696 times) -
Attachment: Freeze2.PNG
(Size: 5.98KB, Downloaded 704 times)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Programmatic Column Freezing [message #1387139 is a reply to message #1386403] |
Tue, 24 June 2014 11:34 |
Rajesh Arumugam Messages: 24 Registered: October 2013 |
Junior Member |
|
|
Hi Dirk,
I went through the code and compared my code with _807_SortableFilterableColumnGroupExample. I could not find any difference. Also, I modified the _807_SortableFilterableColumnGroupExample to make use of my bodyLayerStack and with my bodyLayerStack its working fine. ie- able to freeze the column programmatically. But with my custom nattable, with same bodyLayerStack giving issue. Apart form hiding 1st row, now its hiding all data, but the configuration is not gone- ie, If i click the cell, i can able to see the value and can able to activate the editor.
If its issue with Layer Composition, the layer composition should not work with _807_SortableFilterableColumnGroupExample, right? But this example is working fine with my bodyLatyerStack
|
|
|
|
Powered by
FUDForum. Page generated in 0.05353 seconds