Hi,
I need to update the list view data source based on tree view node click.I got the datasource as json using ajax call but can't able to set to list view.Can you able to help me on this to set the datasource.
function onSelect(e) {var id = e.sender.dataItem(e.node).get("id");
$.ajax({
type: "POST",
url: '@Url.Action("getValuesonNodeClick", "Home")',
data: { node: id }, // the data in JSON format. Note it is *not* a JSON object, is is a literal string in JSON format
success: OnGetSelectNodeSuccess,
error: OnGetMemberError
});
}
function OnGetSelectNodeSuccess(datasource1, status) {
var dataSource = new kendo.data.DataSource({data: datasource1});
$("#listview").kendoListView({
dataSource: dataSource,
template: "#:template#"
});
}