RadDropDownTree should not disappear when click on body

3 posts, 1 answers
  1. MOHAMMED
    MOHAMMED avatar
    2 posts
    Member since:
    Mar 2014

    Posted 30 Mar 2014 Link to this post

    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. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 31 Mar 2014 in reply to MOHAMMED Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. MOHAMMED
    MOHAMMED avatar
    2 posts
    Member since:
    Mar 2014

    Posted 31 Mar 2014 in reply to Shinu Link to this post

    That's what I want , work perfectly

    thank's dear Shinu :)  
Back to Top