toolbarTemplate : string Default: undefined


Template for the content in the toolbar. Appears in a separate row on top of the grid.

Examples

  
Edit this example
<table id="grid"></table> <script> var grid = $('#grid').grid({ dataSource: '../Grid/GetPlayers', toolbarTemplate: '<span data-role="title">Grid Title</span> <span onclick="grid.reload()" style="float:right; cursor: pointer;">click here to refresh  </span>', columns: [ { field: 'ID' }, { field: 'Name' }, { field: 'PlaceOfBirth' } ] }); </script>