Completed
Last Updated: 26 May 2015 09:37 by ADMIN
ADMIN
Nencho
Created on: 16 Mar 2015 08:41
Category: DropDownTree
Type: Bug Report
0
Disabled Node of the RadDropDownTree can still be selected
In order to workaround this bug, you can handle the OnClientNodeClicking client-side event of the embeddedTree and cancel the propagation of the event if the node that is about to be selected is disabled:

 protected void Page_Load(object sender, EventArgs e)
 {
        Reporting.EmbeddedTree.OnClientNodeClicking = "OnClientNodeClicking";
 }

<script type="text/javascript">
            function OnClientNodeClicking(sender, args) {
                var nodeToSelect = args.get_node();

                if (!nodeToSelect.get_enabled())
                    args.set_cancel(true);
            }
        </script>
0 comments