Problem Unchecking nodes

2 posts, 0 answers
  1. Tanya
    Tanya avatar
    4 posts
    Member since:
    Apr 2012

    Posted 09 Sep 2013 Link to this post

    i have the following piece of code:

     if (lgSentTo.length > 0) {
                            var temp = new Array();
                            // this will return an array with strings "1", "2", etc.
                            temp = lgSentTo.split(",");
                            for (a in temp) {
                                var site = temp[a].toString().trim();
                                GetRadTreeView().findNodeByText(site).disable();
                                GetRadTreeView().findNodeByText(site).checked = false;
                            }
                        }

    while "disable()" works fine, i can't seem to uncheck anything.

    i've also tried:   GetRadTreeView().findNodeByText(site).uncheck(); but am also getting nowhere. please assist.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Sep 2013 Link to this post

    Hi Tanya,

    Please have a look at the following code I tried to uncheck and disable the nodes.

    JavaScript:
    <script type="text/javascript">
        function uncheckAndDisable(lgSentTo) {
            var temp = new Array();
            temp = lgSentTo.split(",");
            for (a in temp) {
                var site = temp[a].toString().trim();
                GetRadTreeView().findNodeByText(site).uncheck();
                GetRadTreeView().findNodeByText(site).disable();
            }
        }
        function GetRadTreeView() {
            var radtreeview = $find('<%=RadTreeView1.ClientID %>');
            return radtreeview;
        }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top