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

how to uncheck all checkbox kendo treeview

4 Answers 683 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Guillaume
Top achievements
Rank 1
Guillaume asked on 31 Aug 2015, 03:14 PM

all in the question:

how to uncheck all checkbox kendo treeview at once

thank

4 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 02 Sep 2015, 10:33 AM
Hi,

While there is no API method for doing this, you can achieve the same using jQuery. For example: 
$("#treeview .k-checkbox input").prop("checked", false).trigger("change");

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
marco
Top achievements
Rank 2
answered on 05 Nov 2016, 10:39 PM
it doesn't work at all
0
Alexander Popov
Telerik team
answered on 09 Nov 2016, 09:11 AM
Hi marco,

It appears that the jQuery selector shown below is not correct, therefore no checkboxes are being affected by the prop method. The following works as expected on our demo page: 
$("#treeview input.k-checkbox").prop("checked", false).trigger("change");


Regards,
Alexander Popov
Telerik by Progress
 
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
 
0
John
Top achievements
Rank 1
answered on 30 Nov 2016, 08:46 PM

I did have what the first selector Alexander posted which worked for me until I installed version 2016.3.1118.  Here is what I ended up with that is working.

$("#treeview .k-checkbox-wrapper input").prop("checked", false).trigger("change");

Tags
TreeView
Asked by
Guillaume
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
marco
Top achievements
Rank 2
John
Top achievements
Rank 1
Share this question
or