Kendo Grid Filter Customize Display Text

Kita dapat mengubah teks pada filter di kendo grid. Contoh tampilan:

Capture

[code language=”javascript”]
columns: [
//…
{
field: "IsShow",
title: "Ditampilkan",
width: 120,
template: ‘#= (IsShow == true) ? "<span class=\’glyphicon glyphicon-ok\’></span>" : "<span class=\’glyphicon glyphicon-remove\’></span>" #’,
filterable: { messages: { isTrue: "Ditampilkan", isFalse: "Disembunyikan" } }
},
//…
],
[/code]

Chandra Oemaryadi has written 244 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>