series.push({type: 'column',// Specify then name of the property in each data row that // contains the expiring lease countfield: 'expiring0',name: property + ' Expiring', stack: true, tooltip: {visible: true,template: '<strong>' + property + ' - ' + '#= category # </strong></br>Limit: #= dataItem.limit0 # </br>Expiring: #= dataItem.expiring0 #',//</br>Notes: #= dataItem.notes0 #',font: '11px Trebuchet MS'}});
Hello,
I am using KendoUi TreeView, as I read this treeview doesn't support remote data source from Json. So I was trying to take data from controller in Jquery and loop it to create treeview item as below
$.getJSON(baseurl + '/api/TreeDataController/GetOnlineTreeData',
function (data) {
var ds;
ds = {
$.each(data, function (i, row) {
id: data[i].id, text: data[i].Name, items: [{ id: data[i].id, text: "<label>" + data[i].Name + "</label>" }]
});
}
var treeview = $("#treeview").kendoTreeView({
template: kendo.template($("#treeview-template").html()),
dataSource:[ds]
}).data("kendoTreeView")
});
But here I am getting error at text: (saying expected ; ). So please give me solution how can I show this data as datasource for Tree.
Thanks,
Atul
Editor doesn't work anymore.
Sébastien
