Hello,
I've got a treeview which is bound client side and displays checkboxes.
On page load I need to check some of them based on a condition.
data is created like this :
data.push({
text: item.someName, checked : checked
});
I can't add a "checked='#= item.checked#'" in the template because this will check everything regardless of what I have in item.checked - it's an html thing.
So how can I achieve this ?
I've got a treeview which is bound client side and displays checkboxes.
On page load I need to check some of them based on a condition.
element.kendoTreeView({
dataSource: data,
checkboxes: {
name: "checkedData",
template: "<
input
type
=
'checkbox'
name
=
'checkedData'
value
=
'#= item.text #'
/>"
}
});
data.push({
text: item.someName, checked : checked
});
I can't add a "checked='#= item.checked#'" in the template because this will check everything regardless of what I have in item.checked - it's an html thing.
So how can I achieve this ?