How to place palettes (nodes) in TreeView?

Is it possible to place palettes (nodes) into TreeView? 
Currently, I use custom palettes (nodes)  (loaded from file) : palette.AppendChild()
How can I place them in TreeView instead so that I can have Child and subChild palettes or nodes? (I am not sure which one is the right term, palette or node. But am referring to objects or connectors in the paletteGroupBar).

For instance, my TreeView can be like the followig:

Main (the root node)
  - Object 1
  - Object 2 (like folder)
         - Object 2-1
         - Object  2-2
   - Connector1 (like folder)
        - connector 1-1
        - connector 1-2

The requirement is that, the nodes with subChild can be dragged into the Diagram area.  If there is no childNodes, the higher level can be dragged.
In the above example: Object 1 can be dragged ; Object 2 cannot be dragged because it has got childNodes, thus Object 2-1 and Object 2-2 can be dragged.  Similarly, Connector 1 cannot be dragged but connector 1-1 and connector 1-2 can be dragged into the diagram area.  That means, those which have childNodes are like folders. Thus, Object 2 and Connector 1 are folders.  

Does anyone has done something similar to that?


1 Reply

NG Naganathan Ganesh Babu Syncfusion Team January 2, 2018 01:08 PM UTC

Hi Allen, 
 
Please note that, the diagram’s PaletteGroupBar control does not support to design a palette icon in treeview.  However, we have created a sample to achieve your requirement in application level. please refer to the below attached sample and let us know if your requirement is achieves or not. 
 
Sample: 
 
 
Regards, 
 
Naganathan K G 


Loader.
Up arrow icon