hi,
i am using Radtreeview for asp.net ajax controls.
in java script,
node.get_checked() code gives error as " Object doesn't support this property or method"
my code is,
function AfterCheck(node)
{
if (!node.Checked && node.Parent != null)
{
node.Parent.UnCheck();
}
var siblingCollection = (node.Parent != null) ? node.Parent.Nodes : node.TreeView.Nodes;
var allChecked = true;
for (var i=0; i < siblingCollection.length; i++)
{
if (!siblingCollection[i].Checked)
{
allChecked =
false;
break;
}
}
if (allChecked && node.Parent != null)
{
node.Parent.Check();
}
UpdateAllChildren(node.Nodes, node.Checked);
}
function
UpdateAllChildren(nodes, checked)
{
var i;
for (i=0; i<nodes.length; i++)
{
if (checked)
nodes[i].Check();
else
nodes[i].UnCheck();
if (nodes[i].Nodes.length > 0)
UpdateAllChildren(nodes[i].Nodes, checked);
}
}
previous version (Rad controls for Asp.Net) the above code works fine,
can u give me the solution.
thanks,