|
[html]
<ej-grid id="Grid" [dataSource]="gridData" [toolbarSettings]="toolbarSettings" allowPaging="true" allowSearching="true" [toolbarSettings]="toolbarItems" >
<e-columns>
<e-column field="OrderID" [isPrimaryKey]="true" headerText="OrderID"></e-column>
<e-column field="items.sachin" headerText="CustomerID"></e-column>
<e-column field="Freight" headerText="Freight" editType="numericedit"></e-column>
<e-column field="ShipCountry" headerText="ShipCountry" editType="dropdownedit"></e-column>
<e-column field="OrderDate" headerText="OrderDate" editType="datepicker" format="{0:dd/MM/yyyy}"></e-column>
</e-columns>
</ej-grid>
[TS]
constructor() {
this.toolbarSettings={showToolbar:true, toolbarItems : ["search"],customToolbarItems:["Header"]};
this.gridData = [
[index.html]
<style type="text/css" class="cssStyles">
.Header{
width: 100px !important;
}
.Header:before
{
content:"Header";
}
</style>
|
|
|