i'd like to have the user be able to click a treeviewnode, to check/uncheck the radtreeview (with checkboxes enabled).
in other words, i use the click event of the node, and
if the node is checked for that click event, uncheck it.
if the node is unchecked for that click event, check it.
this portion works to check and unchecked node, but when a checked node is selected, the node stays checked, and does not change to Unchecked.
i also tried node.uncheck();
but no success.
please help to have the node unchecked on the click event, if the node is checked.
in other words, i use the click event of the node, and
if the node is checked for that click event, uncheck it.
if the node is unchecked for that click event, check it.
this portion works to check and unchecked node, but when a checked node is selected, the node stays checked, and does not change to Unchecked.
//Changes check status of node when clicked
function ClientNodeClicked(sender, eventArgs)
{
var node = eventArgs.get_node();
if (node.checked)
{
node.set_checked(false);
}
else if (!node.checked)
{
node.check();
}
}
i also tried node.uncheck();
but no success.
please help to have the node unchecked on the click event, if the node is checked.