Hi,
I' trying to upgrade kendo from version 2012.2.913 to 2013.1.514 and i've noticed that the template used to generate the column menu has changed from :
to
The suppression of the label in the template makes my little snippet of jsscript to mal function: this script is used to skin the checkbox displayed in the column menu:
and the we use the 'sprite trick' to skin the checkbox:
So i've 2 questions, please:
First, i'm curious to know why the label has been deleted, is it a wrong way to use checkbox ?
Then i would want to know if there is an other way to skin the checkbox of the column menu or to provide the template to use to build them ?
Thanks,
Cedric
I' trying to upgrade kendo from version 2012.2.913 to 2013.1.514 and i've noticed that the template used to generate the column menu has changed from :
'<li><label><input type="checkbox" data-#=ns#field="#=columns[col].field#" data-#=ns#index="#=columns[col].index#"/>#=columns[col].title#</label></li>'+'<li><input type="checkbox" data-#=ns#field="#=columns[col].field#" data-#=ns#index="#=columns[col].index#"/>#=columns[col].title#</li>'// First put the label BEFORE the input
var chkIdCounter = 1;
$("label > input[type='checkbox']").each(function () {
$(this).attr("id", "labeledCheckBox" + chkIdCounter);
$(this).parent().attr("for", "labeledCheckBox" + chkIdCounter++);
$(this).insertBefore($(this).parent().parent().find($(this).parent()));});/* then hide the input and display a sprite in place */
input[type="checkbox"]{ position: absolute; display: none;}input[type="checkbox"]:checked ~ label::before{ background-position: 0 -20px;}/* skin-specific sprite */input[type="checkbox"] ~ label::before{ background-image: url('itesoft/radios.png');}So i've 2 questions, please:
First, i'm curious to know why the label has been deleted, is it a wrong way to use checkbox ?
Then i would want to know if there is an other way to skin the checkbox of the column menu or to provide the template to use to build them ?
Thanks,
Cedric