Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have placed RadTreeView with some RadTreeNodes and enabled the checkboxes. I want to change the default display position(left) of the Checkbox to right, so that the checkbox will be displayed after the RadTreeNode text. The nodes have been added dynamically.

Please Help on this.

XML
<script>
        function pageLoad() {
            //debugger;
            var treeview = $find("<%= tvMetricData.ClientID %>");
            var allNodes = treeview.get_allNodes();
            for (var i = 0; i < allNodes.length; i++) {
                var currentNode = allNodes[i];
                var checkBoxElement = currentNode.get_checkBoxElement();//accessing the checkbox
                checkBoxElement.setAttribute("align", "right");
            }
        }
    </script>


Above is the code snippet. But doesn't seems to work.

Thanks in advance.

Regards,
Raghu
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900