Menambahkan no urut pada kendo grid

Menmabhakan no urut di kolom dapat dilakukan tanpa menggunakan model

[code language="javascript"]
var record = 0;
$("#grid-loan").kendoGrid({
dataSource: dataSourceMyLoan,
pageable: true,
sortable: true,
filterable: kendoGridFilterableUSWithoutRow,
resizable: true,
dataBinding: function() {
record = (this.dataSource.page() -1) * this.dataSource.pageSize();
},
columns: [{ field: "Id", hidden: true, },
{ title: "No", template: "#= ++record #", width: 40 },
[/code]

Yosef Sukianto has written 36 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>