When I use Rad treeview as a server side rendered control thru AJAX, none of the clinet sideProperties seem to work, all other functionality seem to work. Please see the Javascript code sample below ( the errors are shown in comment )
function get_checkedNodes_LEAF(tree) {
var checkedNodes = [];
//error description below
// tree.AllNodes does not work, Javascript error .AllNodes not defined
// but the below get method works
var allNodes = tree.get_allNodes();
for (var i = 0, j = 0; i < allNodes.length; i++) {
//eliminate partially checked nodes
if (allNodes[i].get_checkState() == 1) {
// error description below
// allNodes[i].Nodes gives Javascript error .Nodes not defined
// also allNodes[i].get_nodes() returns undefined
checkedNodes[j] = allNodes[i];
j++;
}
}
return checkedNodes;
}
I would need to find only leaf nodes that are checked so I would need to
use node.Nodes.length == 0 check which does not work.
Can anybody help?
Thanks for your support.
Thanks,
Sanjev
function get_checkedNodes_LEAF(tree) {
var checkedNodes = [];
//error description below
// tree.AllNodes does not work, Javascript error .AllNodes not defined
// but the below get method works
var allNodes = tree.get_allNodes();
for (var i = 0, j = 0; i < allNodes.length; i++) {
//eliminate partially checked nodes
if (allNodes[i].get_checkState() == 1) {
// error description below
// allNodes[i].Nodes gives Javascript error .Nodes not defined
// also allNodes[i].get_nodes() returns undefined
checkedNodes[j] = allNodes[i];
j++;
}
}
return checkedNodes;
}
I would need to find only leaf nodes that are checked so I would need to
use node.Nodes.length == 0 check which does not work.
Can anybody help?
Thanks for your support.
Thanks,
Sanjev