This is a migrated thread and some comments may be shown as answers.

Disable selected nodes

1 Answer 65 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Itzy
Top achievements
Rank 1
Itzy asked on 07 Jan 2016, 09:47 PM

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.

1 Answer, 1 is accepted

Sort by
0
Itzy
Top achievements
Rank 1
answered on 07 Jan 2016, 10:14 PM

I solved the problem.

I was missing the treeView.trackChanges();

Tags
TreeView
Asked by
Itzy
Top achievements
Rank 1
Answers by
Itzy
Top achievements
Rank 1
Share this question
or