简体   繁体   中英

Disable\Enable multiple checkboxes in Kendo UI TreeList

I tried these solutions for disable\\enable multiple checkboxes in Kendo UI TreeList when header checkbox is clicked:

1.prop('disabled',true) \\ prop('disabled',false)

2.attr('disabled','disabled') \\ removeAttr('disabled');

3.$(...)[0].disabled=true \\ $(...)[0].disabled=false

But all of them has the same problem which affects just the last item in the TreeList !!!

I really confused and don't know what is going wrong, is it possible to be resolved?

Use jQuery.each() to iterate over all your checkboxes.

For the checking itself, prop is the way to go.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM