-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.js
More file actions
18 lines (15 loc) · 740 Bytes
/
sample.js
File metadata and controls
18 lines (15 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var grid = new ej.grids.Grid({
dataSource: data,
enableAdaptiveUI: true,
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Normal' },
load: () => {
grid.adaptiveDlgTarget = document.getElementsByClassName('e-mobile-content')[0];
},
columns: [
{field: 'OrderID',headerText: 'Order ID',width: 120,isPrimaryKey: true},
{field: 'ShipCity',headerText: 'Ship City',width: 130},
{ field: 'OrderDate', headerText: 'Order Date', type: 'date', format: 'yMd', editType: 'datetimepickeredit', width: 150 },
{field: 'ShipCountry', headerText: 'Ship Country', editType: 'dropdownedit', width: 150 },
],
});
grid.appendTo('#adaptivebrowser');