There you can see that commands go down the layer stack until some handler will catch it, execute it and possibly fire a event to notify about command execution. The StructuralRefreshCommand gets processed by the StructuralRefreshCommandHandler which is registered in the DataLayer. So it seems the commands you are trying to execute are never handled.
Thnx Dirk, this is correct - I replaced the DataLayer by a CompositeLayer.
But it does not have to be a StructuralRefreshCommandHandler.
I am interested in the update mechanism, which is triggered, when I do a manual column resize.
Because the manual resize - updates the CompositeLayer layout correctly.
Of course I am reading the sourcecode, but especially here the mechanism of layout refreshing is intransparent for me:
- the StructuralRefreshCommandHandler does nothing but sending a StructuralRefreshEvent (it did not work)
- repainting the whole table dos not work (cache?)
- Resizing triggers : RecalculateScrollBarsCommand, ColumnResizeCommand (doesn't start a structural update for me)
So all I wanted to ask you about differences of resizing the table and triggering a manual Command / Event