Render data in the grid
Fires
beforeEmptyRowInsert, dataBinding, dataBound, cellDataBoundParameters
Name | Type | Description |
---|---|---|
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>