Skip to content

Commit a049fb1

Browse files
author
pipeline
committed
bug(EJ2-4677): grid sample changes
1 parent 047e3c4 commit a049fb1

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

src/grid/columnresize-plnkr.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/grid/columnresize.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ this.default = (): void => {
1313
allowResizing: true,
1414
height: 400,
1515
columns: [
16-
{ field: 'OrderID', headerText: 'Order ID', minWidth: 120, width: 200, maxWidth: 300, textAlign: 'right' },
17-
{ field: 'CustomerName', headerText: 'Customer Name', width: 200 },
18-
{ field: 'OrderDate', headerText: 'Order Date', width: 200, format: 'yMd', textAlign: 'right' },
19-
{ field: 'Freight', width: 150, format: 'C2', textAlign: 'right' },
20-
{ field: 'ShipName', headerText: 'Ship Name', width: 300 },
21-
{ field: 'ShippedDate', headerText: 'Shipped Date', width: 200, format: 'yMd', textAlign: 'right', allowResizing: false },
22-
{ field: 'ShipCountry', headerText: 'Ship Country', width: 200 },
23-
{ field: 'ShipCity', headerText: 'Ship City', width: 200 }
16+
{ field: 'OrderID', headerText: 'Order ID', minWidth: 10, width: 200, maxWidth: 300, textAlign: 'right' },
17+
{ field: 'CustomerName', headerText: 'Customer Name', minWidth: 10, width: 200 },
18+
{ field: 'OrderDate', headerText: 'Order Date', width: 200, minWidth: 10, format: 'yMd', textAlign: 'right' },
19+
{ field: 'Freight', width: 150, format: 'C2', minWidth: 10, textAlign: 'right' },
20+
{ field: 'ShipName', headerText: 'Ship Name', minWidth: 10, width: 300 },
21+
{
22+
field: 'ShippedDate', headerText: 'Shipped Date', minWidth: 10,
23+
width: 200, format: 'yMd', textAlign: 'right', allowResizing: false
24+
},
25+
{ field: 'ShipCountry', headerText: 'Ship Country', minWidth: 10, width: 200 },
26+
{ field: 'ShipCity', headerText: 'Ship City', minWidth: 10, width: 200 }
2427
]
2528
});
2629
grid.appendTo('#Grid');

0 commit comments

Comments
 (0)