Hi all,
I have been trying out this great product. However, I am having some trouble setting up grid to have column widths in pixels.
If the screen size is less than the sum of all column widths, I can see that each column has given pixel width. However, if the screen is bigger than the column widths are turned into proportions to fit the whole screen. Is there a setting how this can be changed?
Below is my code:
<GridComponent dataSource={testData} gridLines="Both" allowResizing={true} autoFitColumns={false}>
<ColumnsDirective>
{columns.map(x => (
<ColumnDirective
key={x.id}
allowResizing={x.canBeResized}
allowReordering={x.canBeMoved}
field={x.id}
headerText={x.name}
width={`${x.width}px`}
/>
))}
</ColumnsDirective>
<Inject services={[Resize]}/>
</GridComponent>
On smaller screen sizes, the horizontal scrollbar is visible and the grid pixel sizes are used:
However, when the screen size is bigger that the whole grid, columns are resized proportionally: