Hi Team,
I have set the checkbox value is true also can checked succeed,but I want to limit the max checked count in my treeview.
Can you give me a hand? thank .
I guess you want to cancel the TreeNode checking if a particular count reached. If that the case, you can try the following client side code. Attach function to the OnClientNodeChecking event of RadTreeView.
JavaScript:
<script type="text/javascript">
function OnClientNodeChecking(sender, args)
{
var tree = $find("<%= RadTreeView1.ClientID %>");
var checkedNodes = tree.get_checkedNodes();
if(!args.get_node().get_checked())
{
if((checkedNodes.length)>2)
{
alert ("Max limit reached, Cannot check the node");