|Unmovable Column (in GroupBy... table) [message #1386388]
||Tue, 17 June 2014 09:57
| Roman Flückiger
Registered: March 2013
I'm using the GroupByDataLayer / GroupByHeaderLayer to get a table with grouping capabilities. However, the standard behaviour of the layer seems to use the first column (no matter what) for the resulting tree structure, while I'd prefer to have a dedicated tree structure column being added (with pulls the data from the respective column depending on the tree level).
Now, I'm defining this additional column as the first column in my table. Then I show/hide it depending on the state of the GroupByModel. For this to work this "special" column must always remain the first column in the table, it should not be moveable, it should not be draggable to become a group-by node, etc. (while of course, all the other columns are still moveable, draggable, etc.)
So, I'm going from layer to layer (ColumnReorderLayer, ColumnHideShowLayer, GroupByHeaderLayer, ...) and try to "configure" them accordingly.
E.g. I tried to add a different configuration to the ColumnReorderLayer with an overridden version of ColumnReorderDragMode - which prevents column 0 from being dragged. But I noticed that the same DragMode is already "overridden" by the GroupByHeaderLayer, in a way that does not allow any configuration. I fear to face similar problems with other layers that need tweaking to achieve this "Unmoveable Column". So, before I start to override/hack/rewrite all the layers involved, I thought I'd ask here, if there is any other - maybe obvious, maybe more sensible - way, that I have missed, to achieve this?
Thanks for any kind of advice...
Powered by FUDForum
. Page generated in 0.01754 seconds