Reload the data in the grid from a data source.
Fires
beforeEmptyRowInsert, dataBinding, dataBound, cellDataBoundParameters
Name | Type | Description |
---|---|---|
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: '/Players/Get',
columns: [ { field: 'ID', width: 56 }, { field: 'Name' }, { field: 'PlaceOfBirth' } ]
});
$('#btnSearch').on('click', function () {
grid.reload({ name: $('#txtSearch').val() });
});
</script>