Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147069 | Aug 30,2019 03:35 PM UTC | Sep 4,2019 05:35 AM UTC | JavaScript - EJ 2 | 3 |
![]() |
Tags: Grid |
var grid = new ej.grids.Grid({
dataSource: window.orderData,
allowPaging: true,
allowResizing: true,
pageSettings: { pageCount: 5 },
columns: [
{ field: 'OrderID', headerText: 'Order ID', textAlign: 'Right', width: 120, minWidth: 10 },
{
headerText: 'Order Details', customAttributes: { class: 'e-attr' }, columns: [
{ field: 'OrderDate', headerText: 'Order Date', textAlign: 'Right', width: 135, format: 'yMd', minWidth: 10, customAttributes: { class: 'e-attr' } },
{ field: 'Freight', headerText: 'Freight($)', textAlign: 'Right', width: 120, format: 'C2', minWidth: 10, customAttributes: { class: 'e-attr' } },
]
},
. . .
]
});
grid.appendTo('#Grid'); |
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.