Disable selected nodes

2 posts, 0 answers
  1. Itzy
    Itzy avatar
    3 posts
    Member since:
    Jul 2015

    Posted 07 Jan Link to this post

    How can I disable the checked nodes in a tree view?

    This is my javascript:

    function ApplySelectionCriteria() {
    var treeView = $find("<%=myTreeView.ClientID%>");
    var checked = treeView.get_checkedNodes();
    for (i = 0; i < checked.length; i++) {
    checked[i].disable();
    }
    treeView.commitChanges();
    }

    The nodes appear temporarily disabled but then are enabled immediately.

    Thank you.

  2. Itzy
    Itzy avatar
    3 posts
    Member since:
    Jul 2015

    Posted 07 Jan Link to this post

    I solved the problem.

    I was missing the treeView.trackChanges();

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