Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144581 | May 13,2019 12:12 PM UTC | May 15,2019 05:39 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: Grid |
import { DataUtil} from '@syncfusion/ej2-data';
@Component({
selector: 'app-root',
templateUrl: 'a<ejs-grid #grid [dataSource]='data' allowPaging='true' [pageSettings]='pageSettings' [toolbar]='toolbar' (toolbarClick)='toolbarClick($event)' [allowExcelExport]='true' [allowPdfExport]='true' [allowGrouping]="true">
<e-columns>
<e-column field='OrderDate' headerText='OrderDate' type='date' width='120' [format]='formatOptions' [enableGroupByFormat]='true'></e-column>
. . .
</e-columns>
})
export class AppComponent {
public ngOnInit(): void {
this.data = DataUtil.parse.parseJson([{
"OrderID":10307,
"OrderDate":"1996-09-17T00:00:00.000Z",
. . .
}]);
this.formatOptions = { type: 'dateTime', skeleton: 'short' };
. . .
} |
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.