renderReturns: grid

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: '/Players/Get', success: onSuccessFunc },
         columns: [ { field: 'Name' }, { field: 'PlaceOfBirth' } ]
     });
 </script>