I have a TreeView with HierarchicalDataSource and my question is simple: Can I access the current dataItem in the transport.read function?
For instance, consider this code:
new kendo.data.HierarchicalDataSource({
transport: {
read: function() {
// Here i'll prepare my url to be called
return "my/controller/" + dataItem.Id;
}
}
});
I want to access the dataItem's properties of the current expanding node inside the read function. Is this possible?
For instance, consider this code:
new kendo.data.HierarchicalDataSource({
transport: {
read: function() {
// Here i'll prepare my url to be called
return "my/controller/" + dataItem.Id;
}
}
});
I want to access the dataItem's properties of the current expanding node inside the read function. Is this possible?