Hi guys,
I'm currently trying to bind a viewModel value to a toolbar using a template, but no matter what I do it doesn't work, do you have any idea of how I can get it to work?
Thank you in advance.
I'm currently trying to bind a viewModel value to a toolbar using a template, but no matter what I do it doesn't work, do you have any idea of how I can get it to work?
$(
"#grid"
).kendoGrid({
dataSource: viewModel.data,
toolbar: [{
name:
"head"
,
template:
'<span>Type: <label data-bind="text: #=viewModel.type#"></label></span>'
}],
columns: [
{ field:
"Field1"
, title:
"Column1"
, template:
'#=val1#'
},
{ field:
"Field2"
, title:
"Column2"
, template:
'#=val2#'
},
{ field:
"Field3"
, title:
"Column3"
, template:
'#=val3#'
}
],
autoBind:
true
});
Thank you in advance.