Hey all,
Great work on Vaadin 8. Checking out the latest (8.1.0.beta1) Grid/TreeGrid/Tree components today.
I have a common use case for items in my trees (or could be treeGrids): depending on the tree’s data set, sometimes both the parents and childern should be draggable, and other times just the children. I have not yet found that this is possible in Vaadin 8. Either by “tagging” a data item as draggable/not draggable, or by canceling the startDrag() depending on the data item.
Does anyone know if this is doable, yet? Is this funtionality in the works?
In Vaadin 7, I accomplished this by extending the client side Tree component, allowing the startDrag() method to check for a css style attached to the data items via an itemStyleGenerator. If the “no-drag” style was set, then the startDrag() was canceled. No small task, but it worked. I’m hoping for a straightforward solution in Vaadin 8. This is huge for us.
Any comments, ideas or suggestions are greatly appreciated. Thanks!