Hi,
I have an TreeView with CheckChildNodes=true. Also I have add the client event ClientNodeChecking.
I expect if I click a node the client event ClientNodeChecking is fired for the clicked node and for all child nodes. Unfortunaltly it is only fired for the clicked node! Why and how can I solved this?
Background is that i must check the count of all checked nodes and only allowed a maximum of 10.
Thanks for help,
Kind regards,
Christian
I have an TreeView with CheckChildNodes=true. Also I have add the client event ClientNodeChecking.
I expect if I click a node the client event ClientNodeChecking is fired for the clicked node and for all child nodes. Unfortunaltly it is only fired for the clicked node! Why and how can I solved this?
Background is that i must check the count of all checked nodes and only allowed a maximum of 10.
function
FnTreeView_ClientNodeChecking(sender, args)
{
if
(!args.get_node().get_checked())
{
var
selectedNodesCount = sender.get_checkedNodes().length;
if
(selectedNodesCount > 10)
{
args.set_cancel(
true
);
}
}
}
Thanks for help,
Kind regards,
Christian