render Returns: void
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
<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: "../Grid/GetPlayers", success: onSuccessFunc },
columns: [ { field: "Name" }, { field: "PlaceOfBirth" } ]
});
</script>