reloadReturns: void

Reload the data in the grid from a data source.

Fires

beforeEmptyRowInsert, dataBinding, dataBound, cellDataBound

Parameters

NameTypeDescription
params {object} An object that contains a list with parameters that are going to be send to the server.

Examples

sample

    
 <input type="text" id="txtSearch">
 <button id="btnSearch">Search</button>
 <br/><br/>
 <table id="grid"></table>
 <script>
     var grid = $('#grid').grid({
         dataSource: '/0_6/Grid/GetPlayers',
         columns: [ { field: 'ID' }, { field: 'Name' }, { field: 'PlaceOfBirth' } ]
     });
     $('#btnSearch').on('click', function () {
         grid.reload({ searchString: $('#txtSearch').val() });
     });
 </script>