Hi,
I have a TreeGrid (data with parent link retrieved from DataSource), then transfer button and empty ListGrid so far.
When I clicked on transfer button, so selected data from TreeGrid will add to ListGrid:
After click on the button data are transfered, but some TreeNode in TreeGrid has setCanDrag(FALSE);
and when I select node which setCanDrag = FALSE and click on the button - why this node is transfered to the ListGrid? Bug or feature? I can not drag & drop this node (only by click on the button)
And next problem with PreventDuplicates = TRUE on ListGrid. My TreeGrid has parent link nodes and I don't know which nodes are or not folders (setIsFolder method) after retrieved from data source. So, when I drag & drop item from ListGrid to TreeGrid and actual item is as a folder (I see plus icon before that), item will be copied to the ListGrid.. when I try again, I get warn - "Duplicates not allowed" .. it's OK. But when I explode the item in ListGrid and this item has not any childs - so it is not a folder but only node... and now, when I drag & drop this item to the TreeGrid I do not get warn.... so I can make many duplicates...
Thanks for answers, I hope you understand my english :(
I have a TreeGrid (data with parent link retrieved from DataSource), then transfer button and empty ListGrid so far.
When I clicked on transfer button, so selected data from TreeGrid will add to ListGrid:
Code:
// TreeGrid treeGrid.setCanDragRecordsOut(true); treeGrid.setDragDataAction(DragDataAction.COPY);
Code:
// Click event listGrid.transferSelectedData(treeGrid);
and when I select node which setCanDrag = FALSE and click on the button - why this node is transfered to the ListGrid? Bug or feature? I can not drag & drop this node (only by click on the button)
And next problem with PreventDuplicates = TRUE on ListGrid. My TreeGrid has parent link nodes and I don't know which nodes are or not folders (setIsFolder method) after retrieved from data source. So, when I drag & drop item from ListGrid to TreeGrid and actual item is as a folder (I see plus icon before that), item will be copied to the ListGrid.. when I try again, I get warn - "Duplicates not allowed" .. it's OK. But when I explode the item in ListGrid and this item has not any childs - so it is not a folder but only node... and now, when I drag & drop this item to the TreeGrid I do not get warn.... so I can make many duplicates...
Thanks for answers, I hope you understand my english :(