Unplanned
Last Updated: 20 Dec 2019 11:53 by ADMIN
Samuel
Created on: 17 Dec 2018 17:57
Category: DropDownTree
Type: Feature Request
4
Ability to ignore root nodes when checkAll button is clicked

I use the below template to render nodes (so that root nodes do not have a checkbox), but when I click checkAll button the root node(s) content are also displayed as selected

 

You should provide an event to custom handle this behavior and ignore nodes unselectable

 .Checkboxes(setting => setting
                                                .CheckChildren(true)
                                                .Template("# if (item.level() > 0) { #" +
                                                            "<input type='checkbox' #= item.checked ? 'checked' : '' #>" +
                                                            "# item.text = item.SymptomName #" +
                                                            "#}else{#" +
                                                                "# item.text = item.LocationName #" +
                                                            "#}#"
                                                )
                                )

 

Keep up the awesome work !

Attached Files:
1 comment
ADMIN
Joana
Posted on: 24 Dec 2018 07:24
Hello Samuel,

I performed several tests on our DropDownList. I've been using the checkboxes template you have provided and our demo site:

 https://demos.telerik.com/aspnet-mvc/dropdowntree/checkboxes

I have attached a sample video with the behavior on my side. Even though, it's not part of our built-in functionality, the selection works as expected on my end.

Could you please share your DropDownTree setup? What is the Telerik UI for ASP.NET MVC version, you are using?

Regards,
Joana
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Attached Files: