$("#Grid").ejGrid({
dataSource: dataManger,//eval(newdata),
allowPaging: true,
enableAltRow: true,
allowSorting: true,
allowFiltering: true,
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, editMode: "batch" },
filterSettings: { filterType: "menu" },
pageSettings: { pageSize: 20, enableTemplates: true, template: "#pagerTemplate", showDefaults: false, showPagerInformation: true, pagerStyle: "PagerStyle.DefaultManual" },
create: function (args) {
$("#btn").ejButton({
click: "btnClick"
});
},
columns: [
{ field: "UNIQUESRL", headerText: "UNIQUESRL", textAlign: ej.TextAlign.Center, visible: false, isPrimaryKey: true, editType: ej.Grid.EditingType.Numeric },
{ field: "EMPID", headerText: "Employee ID", textAlign: ej.TextAlign.Right },
{ field: "EMPNAME", headerText: "Employee Name" },
{ field: "EMPDOJ", headerText: "Date of Joining", format: "{0:MM/dd/yyyy hh:mm:ss tt}", type: "date", editType: ej.Grid.EditingType.DateTimePicker },//textAlign: ej.TextAlign.Right, width: 75, format: "{0:C}"
{ field: "EMPSAL", headerText: "Employee Salary", format: "{0:c3}", editType: ej.Grid.EditingType.Numeric, editParams: { decimalPlaces: 3 } },
{ field: "Permanent", headerText: "Permanent", editType: ej.Grid.EditingType.Boolean, visible: true, displayAsCheckBox: true, EnableTriState: true },
],
});