Page 1 of 1

possibility to set rowHeight of tasks explicitely

Posted: Mon Jan 02, 2023 9:45 pm
by pincherhgz

is there a possibility to set the rowHeight of specific tasks individually (i.e. somehow in the data record)


Re: possibility to set rowHeight of tasks explicitely

Posted: Mon Jan 02, 2023 10:21 pm
by marcio

Hey pincherhgz,

For now, no. You can set different row heights, but the tasks themselves will have the same height.


Re: possibility to set rowHeight of tasks explicitely

Posted: Tue Jan 03, 2023 5:54 pm
by pincherhgz

I found in the gantt docs this:

rowHeight
:
Number
GridBase
Row height in pixels. This allows the default height for rows to be controlled. Note that it may be overriden by specifying a rowHeight on a per record basis

what does that exactly mean ?


Re: possibility to set rowHeight of tasks explicitely

Posted: Tue Jan 03, 2023 9:14 pm
by marcio

Hey,

So, this GridBase rowHeight is a default height for all the rows inside the Grid, but you can specify to some specific row, and you can overwrite with the second rowHeight.


Re: possibility to set rowHeight of tasks explicitely

Posted: Fri Jan 27, 2023 6:39 pm
by pincherhgz

just a remark, we added "autoHeight": true, to a column. Doing this changes the row height of that specific row, too


Re: possibility to set rowHeight of tasks explicitely

Posted: Fri Jan 27, 2023 7:44 pm
by marcio

Yes pincherhgz,

That's also a possibility, as you can see in the documentation https://bryntum.com/products/gantt/docs/api/Grid/view/GridBase#config-autoHeight

Automatically set grids height to fit all rows (no scrolling in the grid). In general you should avoid using autoHeight: true, since it will bypass Grids virtual rendering and render all rows at once, which in a larger grid is really bad for performance.


Re: possibility to set rowHeight of tasks explicitely

Posted: Fri Jan 27, 2023 9:18 pm
by pincherhgz

thanks for your feedback