This is a migrated thread and some comments may be shown as answers.

show all child nod data based on parent node selection

1 Answer 72 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Shashikant
Top achievements
Rank 1
Shashikant asked on 21 Aug 2014, 06:04 AM
Hi,
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.


Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 21 Aug 2014, 09:00 AM
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).

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

Please elaborate your requirement if it doesn't help.
Thanks,
Princy.
Tags
DropDownTree
Asked by
Shashikant
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or