column.tmpl : string Default: undefined


Template for the content in the column. Use curly brackets "{}" to wrap the names of data source columns from server response.

Examples

  
Edit this example
<table id="grid"></table> <script> $("#grid").grid({ dataSource: "../Grid/GetPlayers", columns: [ { field: "ID" }, { field: "Name" }, { title: "Info", tmpl: "{Name} is born in {PlaceOfBirth}." } ] }); </script>