We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

GridTree or TreeViewAdv - Which one to use...

Thread ID:

Created:

Updated:

Platform:

Replies:

123384 Mar 13,2016 05:24 AM Mar 15,2016 01:56 PM WPF 1
loading
Tags: GridTreeControl
Richard
Asked On March 13, 2016 05:24 AM

I have a project where need to have a tree like display and each node on the tree needs columns of data as well. From what I can see GridTree or TreeViewAdv can both do this. Currently I am not sure which to use.
The functionality I need is :
- By code populate the initial tree (and its columns)
- UI allows new nodes to be added (as children of existing nodes)
- UI allows new nodes to be added (as siblings of existing nodes)
- UI allows nodes to be reordered
- When a user selects a node in the tree - they can edit information associated with that node (in a different part of the UI)
- By code the amended tree can then be serialized back into the same data structure it was loaded from
Which control should I be using for this?
Thanks

Sivakumar R [Syncfusion]
Replied On March 15, 2016 01:56 PM

Hi Clarotechuk,

Please find the details below,


GridTreeControl
TreeView
By code populate the initial tree (and its columns)
GridTreeControl supports different modes of data population.
1.     Self-relational data
2.     Parent-child property mapping (using ParentPropertyName and ChildPropertyName)
3.     On-demand loading using RaiseRequestTreeItems event.

Also provides support to define columns
Support to bind data and columns can be achieved using DataTemplate.
UI allows new nodes to be added (as children of existing nodes)
This can be achieved via ContextMenu. Refer the below sample for adding ContextMenu for cell.
This can be achieved via ContextMenu. Refer ContextMenu sample under TreeView control in dashboard.
 UI allows new nodes to be added (as siblings of existing nodes)
This can be achieved via ContextMenu. Refer the below sample for adding ContextMenu for cell.
This can be achieved via ContextMenu. Refer ContextMenu sample under TreeView control in dashboard.
When a user selects a node in the tree - they can edit information associated with that node (in a different part of the UI)
Yes, This can be achieved.
Yes, This can be achieved.

By code the amended tree can then be serialized back into the same data structure it was loaded from

Which control should I be using for this?

It is not possible to serialize & de-serialize expand and collapse states of nodes. But you can programmatically expand and collapse nodes.
It is not possible to serialize & de-serialize expand and collapse states of nodes.

Sample:
http://www.syncfusion.com/downloads/support/forum/123384/ze/WpfApplication11559907590

Thanks,
Sivakumar


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;