Completed
Last Updated: 04 Feb 2020 10:28 by ADMIN
Imported User
Created on: 04 May 2015 14:28
Category: TreeView
Type: Feature Request
4
Apply checkbox styles to TreeView widget
A recent update added the Checkbox widget that uses a novel set of CSS and HTML elements to stylize the checkbox in the browser.  This style is not automatically applied to the TreeView widget's checkboxes.

It would be very nice to have the TreeView checkboxes stylized to maintain a consistent look and feel across widgets:

http://docs.telerik.com/kendo-ui/web/appearance-styling#checkboxes-and-radio-buttons
5 comments
ADMIN
Telerik Admin
Posted on: 01 Jul 2015 14:02
Thanks for sharing your thoughts, Taylor.
Taylor
Posted on: 30 Jun 2015 13:28
Wanting to avoid breaking changes is commendable.  Could the new styles be offered through a configuration option.  The option could default to "off" so that it's not a breaking change.  If a developer chooses to turn on the new styles, the developer would have to know/accept the potential that the TreeView rendering/behavior could be very different.  Any custom code would have to be reviewed and possibly updated to account for the new HTML to get the stylized checkboxes.
ADMIN
Telerik Admin
Posted on: 07 May 2015 14:16
Including labels beside the treeview checkboxes will be a breaking change in the treeview rendering, Taylor. And we prefer to stay away from breaking existing code with such changes. Still this can be discussed further on one of the future devteam meetings.
ADMIN
Telerik Admin
Posted on: 07 May 2015 14:14
The k-checkbox style is automatically applied to the treeview widget checkboxes, as explained in this section of the same help article you linked, Taylor:
http://docs.telerik.com/kendo-ui/web/appearance-styling#primitives

There's no label attached to them though, and no additional classes are applied since this would be a breaking change. Let me know if I am leaving something out.
Taylor
Posted on: 07 May 2015 13:10
The problem is, if there's no label element, the k-checkbox class doesn't do anything.  What we want is to have those checkboxes end up with the nicer looking stylized display in the browser.  Right now, the TreeView still shows the old, blocky checkboxes.  We tried using custom templates in the TreeView, but it kept losing other functionality, such as the plus/minus node expanding, when we did that.