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

How to select all checkboxes in treeView

1 Answer 157 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Gerry Connolly
Top achievements
Rank 1
Gerry Connolly asked on 17 Feb 2014, 09:10 PM
Hello
I have TreeView in ASP MVC project.
How to check all checkboxes in nodes after load tree view?

1 Answer, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 19 Feb 2014, 03:45 PM
Hello Gerry,

You could check the TreeView nodes by adding checked attribute: 
<script>
$(document).ready(function () {
    $('#treeview input[type="checkbox"]').attr('checked', 'checked');
});
</script>

Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
Gerry Connolly
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Share this question
or