This is my code in c#:
public JsonResult SearchRolResults()
{
var rol = new Rol { Name = "RolAjax", Domain = "WAF", Id = 123456789 };
return this.Json(rol);
}
My code in JS adn HTML:
<ul id="add_window_listview"></ul>
$("#add_window_listview").kendoListView({
dataSource: {
transport: {
read: {
url: "/Person/SearchRolResults",
type: "GET",
dataType: "json",
contentType: 'application/json; charset=utf-8'
}
}
},
template: "<li>${Name} (${Domain})</li>"
});
The C# ActionMethod is called but the listview not populate !!
How i can debug this scenario??
How i can view the dataSource in debug mode?? (I use chrome now)
Thanks.
public JsonResult SearchRolResults()
{
var rol = new Rol { Name = "RolAjax", Domain = "WAF", Id = 123456789 };
return this.Json(rol);
}
My code in JS adn HTML:
<ul id="add_window_listview"></ul>
$("#add_window_listview").kendoListView({
dataSource: {
transport: {
read: {
url: "/Person/SearchRolResults",
type: "GET",
dataType: "json",
contentType: 'application/json; charset=utf-8'
}
}
},
template: "<li>${Name} (${Domain})</li>"
});
The C# ActionMethod is called but the listview not populate !!
How i can debug this scenario??
How i can view the dataSource in debug mode?? (I use chrome now)
Thanks.