Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1965
2 webdatatree
posted

Can someone give me an example of a webdatatree(with single child) bound to a dataset and on clicking one of the items in that tree should populate the 2nd webdatatree.

  • 29417
    Suggested Answer
    Offline posted

    Hello dev_here ,

     

    Thank you for posting in our forum.

     

    Please refer to the attached sample.

    To populate the second tree you could use the onnodeclick event of the first tree to get the clicked node and based on that set the data source of the second tree. To force a postback you could set an autopostback flag for node click:

        <AutoPostBackFlags NodeClick="On" />

     This will cause a postaback when you click on any of the nodes and in the server side event handler you can populate the second tree.

     

    Let me know if you have any questions.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer II

    Infragistics, Inc.

    http://ko.infragistics.com/support

     

    WDT_DataSet.zip