Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TreeView > How to bind Hierarchical Data

Not answered How to bind Hierarchical Data

Feed from this thread
  • Vivek avatar

    Posted on Dec 29, 2011 (permalink)

    Hello
     How can we bind parent-child relationship in Treeview recursively remember this could be for n-tier for e.g

    Company
    Division-1
               Sub-Division-11
               Sub-Division-12
               Sub-Division-13
    Division-2
               Sub-Division-21 
               Sub-Division-22
               Sub-Division-23  

    In my database i have Node ID and Parent Node ID also i want to do drag and drop inside this tree.


      

    Reply

  • Zarko Zarko admin's avatar

    Posted on Dec 29, 2011 (permalink)

    Hi,
    There are basically two ways to initialize a hierarchical template - with HierarchicalDataTemplates or with DataTemplates and a TemaplateSelector. You can read more here and here and I've also attached a sample project which shows both approaches so you could examine it and see what works best for you.
    If you have more questions feel free to ask.

    Greetings,
    Zarko
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TreeView > How to bind Hierarchical Data
Related resources for "How to bind Hierarchical Data"

WPF TreeView Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]