This repository was archived by the owner on Jul 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdefault.tsx
More file actions
47 lines (45 loc) · 2.45 KB
/
default.tsx
File metadata and controls
47 lines (45 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import { GridComponent, ColumnsDirective, ColumnDirective } from '@syncfusion/ej2-react-grids';
import { orderDetails } from './data';
import { SampleBase } from '../common/sample-base';
export class Default extends SampleBase<{}, {}> {
render() {
return (
<div className='control-pane'>
<div className='control-section'>
<GridComponent dataSource={orderDetails} height='350'>
<ColumnsDirective>
<ColumnDirective field='OrderID' headerText='Order ID' width='120' textAlign='Right'></ColumnDirective>
<ColumnDirective field='CustomerName' headerText='Customer Name' width='150'></ColumnDirective>
<ColumnDirective field='OrderDate' headerText='Order Date' width='130' format='yMd' textAlign='Right' />
<ColumnDirective field='Freight' headerText='Freight' width='120' format='C2' textAlign='Right' />
<ColumnDirective field='ShippedDate' headerText='Shipped Date' width='130' format='yMd' textAlign='Right'></ColumnDirective>
<ColumnDirective field='ShipCountry' headerText='Ship Country' width='150'></ColumnDirective>
</ColumnsDirective>
</GridComponent>
</div>
<div id="action-description">
<p>This sample demonstrates the default rendering of the Grid with minimum configuration.</p>
</div>
<div id='description'>
<p>
The Grid component is used to display and manipulate tabular data with configuration options to control the way the data
is presented and manipulated. It will pull the the data from a data source, such as an array of JSON objects, OData web
services, or <code><a target='_blank' className='code'
href='http://ej2.syncfusion.com/documentation/data/api-dataManager.html'>
DataManager</a></code> binding data fields to columns. Also, displaying a column header
to identify the field with support for grouped records.
</p>
<p>
In this demo, the Grid is populated with its minimum default settings.
</p>
<p>
More information on the Grid instantiation can be found in this
<a target='_blank' href='http://ej2.syncfusion.com/react/documentation/grid/getting-started.html'> documentation section</a>.
</p>
</div>
</div>
)
}
}