Hii,
Here is my code for kendo ui listview but the problem is that the list view is not going to bind.
<div id="example" class="k-content">
<div id="listView"></div>
<div class="k-pager-wrap">
<div id="pager"></div>
</div>
<script type="text/x-kendo-tmpl" id="template">
<div class="product">
<h3>${Category_ID}</h3>
</div>
</script>
<script>
$(document).ready(function () {
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "/Admin/AddCategory/GetCategoryList",
dataType: "jsonp"
}
},
pageSize: 12
});
$("#pager").kendoPager({
dataSource: dataSource
});
$("#listView").kendoListView({
dataSource: dataSource,
template: kendo.template($("#template").html())
});
});
</script>
</div>
Below is the result with comes out when i execute this url:
I dont know what is the error going on.....
can you please help me
Thanx
Here is my code for kendo ui listview but the problem is that the list view is not going to bind.
<div id="example" class="k-content">
<div id="listView"></div>
<div class="k-pager-wrap">
<div id="pager"></div>
</div>
<script type="text/x-kendo-tmpl" id="template">
<div class="product">
<h3>${Category_ID}</h3>
</div>
</script>
<script>
$(document).ready(function () {
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "/Admin/AddCategory/GetCategoryList",
dataType: "jsonp"
}
},
pageSize: 12
});
$("#pager").kendoPager({
dataSource: dataSource
});
$("#listView").kendoListView({
dataSource: dataSource,
template: kendo.template($("#template").html())
});
});
</script>
</div>
Below is the result with comes out when i execute this url:
[{"Category_ID":1,"CategoryName":"Programming Jobs"},{"Category_ID":2,"CategoryName":"Design Jobs"},{"Category_ID":3,"CategoryName":"Writing Jobs"},{"Category_ID":4,"Cate
I dont know what is the error going on.....
can you please help me
Thanx