show all child nod data based on parent node selection

2 posts, 0 answers
  1. Shashikant
    Shashikant avatar
    3 posts
    Member since:
    Aug 2013

    Posted 21 Aug 2014 Link to this post

    I am new to rad dropdown tree. I want to show data from database based on selection in Rad dropdown tree.
    All I want that when a child node is selected it should show data based on that node selection (This scenario is working fine) but when a parent node is selected it is not showing data based on all its child nodes.

    Please note that each item in Rad Drop Down Tree have a unique product_type_id  and on bases of product_type_id  I am executing query to show result.

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Aug 2014 in reply to Shashikant Link to this post

    Hi Shashikant,

    I guess you want to expand the selected node of RadDropDownTree. In order to achieve that try to set the ExpandNodeOnSingleClick property to true. Using the ExpandNodeOnSingleClick of the RadDropDownTree control a node can easily be expanded
    when a user clicks on it (single click).

    <telerik:RadDropDownTree ID="rdroptreeDetails" runat="server" ExpandNodeOnSingleClick="true" DataFieldID="id" DataFieldParentID="parentid" DataTextField="text" DataValueField="id" DataSourceID="sqldsDetails">

    Please elaborate your requirement if it doesn't help.
  3. DevCraft R3 2016 release webinar banner
Back to Top