Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141205 | Nov 29,2018 03:01 PM UTC | Nov 30,2018 07:13 AM UTC | ASP.NET MVC | 1 |
![]() |
Tags: Grid |
$("#Grid").ejGrid({
// the datasource "window.employeeView" is referred from jsondata.min.js
dataSource: ej.DataManager(window.employeeView).executeLocal(ej.Query().take(8)),
allowPaging: true,
pageSettings: { pageSize: 4 },
columns: [
{ headerText: "Employee Image", template: "#columnTemplate", textAlign: "center", width: 110 },
{ field: "EmployeeID", headerText: "Employee ID", isPrimarykey: true, editType: ej.Grid.EditingType.NumericEdit, textAlign: ej.TextAlign.Right, width: 90 },
{ field: "FirstName", headerText: "First Name", width: 90 },
{ field: "LastName", headerText: "Last Name", width: 90 },
{ field: "BirthDate", headerText: "Birth Date", width: 90, format: "{0:MM/dd/yyyy}", textAlign: ej.TextAlign.Right },
{ field: "Country", headerText: "Country", width: 80 }
]
}); |
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.