Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
Not able to bind Kendo ListView
Pramod Thakur
Mar 18 2015 9:39 AM
837
Reply
Hi,
I am new to kendo UI controls. I am trying to bind kendo ui listview. But not able to do that.
Can any one please help.
div class="demo-section">
<div id="listView"></div>
<div id="pager" class="k-pager-wrap"></div>
</div>
@section scripts{
<script type="text/x-kendo-template" id="template">
<div class="product">
<h3>#:Id#</h3>
</div>
</script>
<script>
$(function () {
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "/Subscription/Subscription/PurchaseDetailSubscription?CustomerId=6115258427",
dataType: "json"
}
},
pageSize: 5,
});
$("#pager").kendoPager({
dataSource: dataSource
});
$("#listView").kendoListView({
dataSource: dataSource,
template: kendo.template($("#template").html())
});
});
</script>
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Integration of jointjs with angularjs
What is angular service and module