This is a migrated thread and some comments may be shown as answers.

How to disable only the checkbox of root folder in treeview

2 Answers 370 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Vidya
Top achievements
Rank 1
Vidya asked on 15 Feb 2013, 05:18 AM
Hi,

We have a requirement in our application that the user should not check the Root node, we need to disable the checkbox of root node alone.
We are loading the treeview using Ajax Binding (Load on Demand).
Please help.!

Thanks,
Vidya

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 18 Feb 2013, 09:58 AM
Hi Vidya,

You could disable the checkbox for the root item by setting it's disabled attribute to true.

E.g.
$("#treeview .k-checkbox input").eq(0).attr("disabled", true)

If this was not the functionality that you were looking for, please provide more information, so I can assist you further.

 

Kind regards,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Vidya
Top achievements
Rank 1
answered on 20 Feb 2013, 09:25 AM
Thank You, this worked.

Thanks,
Vidya
Tags
TreeView
Asked by
Vidya
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Vidya
Top achievements
Rank 1
Share this question
or