Skip to content

Commit 15e26bc

Browse files
author
pipeline
committed
bug(EJ2-5527): context menu sample alignment issue fixed.
1 parent badf7b4 commit 15e26bc

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed
Binary file not shown.
18 Bytes
Binary file not shown.

samples/grid/contextmenu/app/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ export class ContextMenuSample extends SampleBase<{}, {}> {
2121
allowExcelExport={true} allowPdfExport={true} contextMenuItems={this.contextMenuItems}
2222
editSettings={this.editing}>
2323
<ColumnsDirective>
24-
<ColumnDirective field='OrderID' headerText='Order ID' width='200' textAlign='right' isPrimaryKey={true}></ColumnDirective>
24+
<ColumnDirective field='OrderID' headerText='Order ID' width='120' textAlign='right' isPrimaryKey={true}></ColumnDirective>
2525
<ColumnDirective field='CustomerName' headerText='Customer Name'></ColumnDirective>
26-
<ColumnDirective field='ShippedDate' headerText='Shipped Date' format='yMd' textAlign='right' />
27-
<ColumnDirective field='Freight' headerText='Freight' width='150' format='C2' textAlign='right' />
26+
<ColumnDirective field='Freight' headerText='Freight' format='C2' textAlign='right' editType='numericedit' />
2827
<ColumnDirective field='ShipName' headerText='Ship Name' width='200'></ColumnDirective>
29-
<ColumnDirective field='ShipCountry' headerText='Ship Country' width='200'></ColumnDirective>
28+
<ColumnDirective field='ShipCountry' headerText='Ship Country' width='150' editType='dropdownedit'></ColumnDirective>
29+
<ColumnDirective field='ShipCity' headerText='Ship City' width='150'></ColumnDirective>
3030
</ColumnsDirective>
3131
<Inject services={[Resize, Sort, ContextMenu, Filter, Page, ExcelExport, Edit, PdfExport]} />
3232
</GridComponent>

src/grid/contextmenu.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ export class ContextMenuSample extends SampleBase<{}, {}> {
2121
allowExcelExport={true} allowPdfExport={true} contextMenuItems={this.contextMenuItems}
2222
editSettings={this.editing}>
2323
<ColumnsDirective>
24-
<ColumnDirective field='OrderID' headerText='Order ID' width='200' textAlign='right' isPrimaryKey={true}></ColumnDirective>
24+
<ColumnDirective field='OrderID' headerText='Order ID' width='120' textAlign='right' isPrimaryKey={true}></ColumnDirective>
2525
<ColumnDirective field='CustomerName' headerText='Customer Name'></ColumnDirective>
26-
<ColumnDirective field='ShippedDate' headerText='Shipped Date' format='yMd' textAlign='right' />
27-
<ColumnDirective field='Freight' headerText='Freight' width='150' format='C2' textAlign='right' />
26+
<ColumnDirective field='Freight' headerText='Freight' format='C2' textAlign='right' editType='numericedit' />
2827
<ColumnDirective field='ShipName' headerText='Ship Name' width='200'></ColumnDirective>
29-
<ColumnDirective field='ShipCountry' headerText='Ship Country' width='200'></ColumnDirective>
28+
<ColumnDirective field='ShipCountry' headerText='Ship Country' width='150' editType='dropdownedit'></ColumnDirective>
29+
<ColumnDirective field='ShipCity' headerText='Ship City' width='150'></ColumnDirective>
3030
</ColumnsDirective>
3131
<Inject services={[Resize, Sort, ContextMenu, Filter, Page, ExcelExport, Edit, PdfExport]} />
3232
</GridComponent>

0 commit comments

Comments
 (0)