Skip to content

Commit 2c98a8e

Browse files
Copilottishko0
andcommitted
Remove width constraints from all columns to allow grid auto-sizing
Co-authored-by: tishko0 <15924795+tishko0@users.noreply.github.com>
1 parent 36bd6f6 commit 2c98a8e

File tree

3 files changed

+1
-16
lines changed
  • samples/grids
    • grid/cell-selection-custom-palette/src
    • hierarchical-grid/cell-selection-custom-palette/src
    • tree-grid/cell-selection-custom-palette/src

3 files changed

+1
-16
lines changed

samples/grids/grid/cell-selection-custom-palette/src/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,37 +44,31 @@ export default class Sample extends React.Component<any, any> {
4444
<IgrColumn
4545
field="ID"
4646
header="Customer ID"
47-
width="120px"
4847
sortable={true}>
4948
</IgrColumn>
5049
<IgrColumn
5150
field="Company"
5251
header="Company Name"
53-
width="200px"
5452
sortable={true}>
5553
</IgrColumn>
5654
<IgrColumn
5755
field="ContactName"
5856
header="Contact"
59-
width="150px"
6057
sortable={true}>
6158
</IgrColumn>
6259
<IgrColumn
6360
field="City"
6461
header="City"
65-
width="120px"
6662
sortable={true}>
6763
</IgrColumn>
6864
<IgrColumn
6965
field="Country"
7066
header="Country"
71-
width="120px"
7267
sortable={true}>
7368
</IgrColumn>
7469
<IgrColumn
7570
field="Phone"
76-
header="Phone"
77-
width="150px">
71+
header="Phone">
7872
</IgrColumn>
7973
</IgrGrid>
8074
</div>

samples/grids/hierarchical-grid/cell-selection-custom-palette/src/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,12 @@ export default class Sample extends React.Component<any, any> {
8282
field="Photo"
8383
header="Photo"
8484
dataType="image"
85-
minWidth="115px"
8685
resizable={true}>
8786
</IgrColumn>
8887
<IgrColumn
8988
field="Debut"
9089
header="Debut"
9190
dataType="number"
92-
minWidth="88px"
93-
maxWidth="230px"
9491
resizable={true}
9592
sortable={true}>
9693
</IgrColumn>

samples/grids/tree-grid/cell-selection-custom-palette/src/index.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,42 +48,36 @@ export default class Sample extends React.Component<any, any> {
4848
field="ID"
4949
header="Order ID"
5050
dataType="number"
51-
width="120px"
5251
sortable={true}>
5352
</IgrColumn>
5453
<IgrColumn
5554
field="Name"
5655
dataType="string"
5756
header="Order Product"
58-
width="200px"
5957
sortable={true}>
6058
</IgrColumn>
6159
<IgrColumn
6260
field="Units"
6361
dataType="number"
6462
header="Units"
65-
width="120px"
6663
sortable={true}>
6764
</IgrColumn>
6865
<IgrColumn
6966
field="UnitPrice"
7067
header="Unit Price"
7168
dataType="currency"
72-
width="150px"
7369
sortable={true}>
7470
</IgrColumn>
7571
<IgrColumn
7672
field="Price"
7773
header="Price"
7874
dataType="currency"
79-
width="150px"
8075
sortable={true}>
8176
</IgrColumn>
8277
<IgrColumn
8378
field="OrderDate"
8479
header="Order Date"
8580
dataType="date"
86-
width="150px"
8781
sortable={true}>
8882
</IgrColumn>
8983
</IgrTreeGrid>

0 commit comments

Comments
 (0)