BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
<script>
// Create grid object.
var gridObj = $("#Grid").data("ejGrid");
var index = gridObj.getIndexByRow($(".e-gridcontent tr").first()); // here we will get index
gridObj.selectRows(index); // Selects rows based on the given index
</script> |
$(function () {
$("#Grid").ejGrid({
// the datasource "window.gridData" is referred from jsondata.min.js
dataSource: window.gridData,
allowPaging: true,
selectionType: "multiple",
..
columns: [
..
]
});
$("#refresh").click(function () {
var obj = $("#Grid").ejGrid("instance");
obj.selectRows(1, 4);
}); |