Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145181 | Jun 11,2019 01:48 PM UTC | Jun 14,2019 03:35 PM UTC | ReactJS | 3 |
![]() |
Tags: ejGrid |
var index;
$(function () {
$("#Grid").ejGrid({
dataSource: Data,
allowPaging: true,
commonWidth: 200,
enablePersistence: true,
rowSelected: "rowSelected",
actionComplete: "complete",
columns: [
{ field: "OrderID", isPrimaryKey: true, headerText: "Order ID", textAlign: ej.TextAlign.Right, validationRules: { required: true, number: true } },
{ field: "CustomerID", headerText: 'Customer ID', validationRules: { required: true, minlength: 3 } },
]
});
});
function rowSelected(args) {
index = args.rowIndex;
}
function refreshData(){
var gridObj = $("#Grid").ejGrid("instance");
gridObj.dataSource(window.gridData);
gridObj.selectRows(index);
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.