get Returns: object
Return record from the grid based on position.
Parameters
Name | Type | Description |
---|---|---|
position | {int} | The position of the row that needs to be return. |
Examples
<button id="btnGetData">Get Data</button>
<br/><br/>
<table id="grid"></table>
<script>
var grid = $("#grid").grid({
dataSource: "../Grid/GetPlayers",
columns: [ { field: "ID" }, { field: "Name" }, { field: "PlaceOfBirth" } ]
});
$("#btnGetData").on("click", function () {
var data = grid.get(3);
alert(data.Name + " born in " + data.PlaceOfBirth);
});
</script>