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

RadDropDownTree should not disappear when click on body

2 Answers 70 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
MOHAMMED
Top achievements
Rank 1
MOHAMMED asked on 30 Mar 2014, 02:00 PM
hello dears, 

When I clicked on the body of page , the RadDropDownTree should not disappear, kindly let me know how I can solve this.

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 31 Mar 2014, 05:10 AM
Hi MOHAMMED,

Please try to handle the OnClientDropDownClosing event of RadDropDownTree to achieve your scenario. Please have a look into the sample code snippet which works fine at my end.

ASPX:
<telerik:RadDropDownTree ID="RadDropDownTree1" runat="server" DataFieldID="EmployeeID"
    OnClientDropDownClosing="ShowTree" DataFieldParentID="ReportsTo" DataTextField="EmployeeID"
    DataSourceID="SqlDataSource1">
</telerik:RadDropDownTree>

JavaScript:
<script type="text/javascript">
    function ShowTree(sender, args) {
        args.set_cancel(true);
    }
</script>

Thanks,
Shinu.
0
MOHAMMED
Top achievements
Rank 1
answered on 31 Mar 2014, 06:42 AM
That's what I want , work perfectly

thank's dear Shinu :)  
Tags
DropDownTree
Asked by
MOHAMMED
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
MOHAMMED
Top achievements
Rank 1
Share this question
or