Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Diff between Tree and TreeGrid?

    In the feature explorer and other examples I have seen so far, TreeGrid has options like canReorderRecords , canAcceptDroppedRecords . Basically support Drag and Drop functionality.

    Does Tree object support the drag and drop functionality?
    What's the hierarchy of tree and treeGrid objects...?
    what other diff's are between Tree and TreeGrid ?

    #2
    Hi Mpastamatla,

    TreeGrids are a SmartClient UI component. They're what the user actually sees and interacts with on the page.
    By comparison Trees are a data object - they are a representation of a hierachy of records (or "nodes").

    You can look at the TreeGrid and Tree documentation for more information on each object. You may also be interested in the Tree data binding topic, which discusses in more depth how TreeGrids can be bound to hierachical data, including data stored on the server.

    In terms of your specific question about drag/drop interactions with TreeGrids - yes drag and drop is supported. Take a look at the folderDrop() API.

    Comment

    Working...
    X