renderReturns: void

Render data in the grid

Fires

beforeEmptyRowInsert, dataBinding, dataBound, cellDataBound

Parameters

NameTypeDescription
response {object} An object that contains the data that needs to be loaded in the grid.

Examples

sample

    
 <table id="grid"></table>
 <script>
     var grid, onSuccessFunc;
     onSuccessFunc = function (response) {
         //you can modify the response here if needed
         grid.render(response);
     };
     grid = $('#grid').grid({
         dataSource: { url: '/0_6/Grid/GetPlayers', success: onSuccessFunc },
         columns: [ { field: 'Name' }, { field: 'PlaceOfBirth' } ]
     });
 </script>