Servoy / aggridcomponents

Advanced table components based on ag-Grid
MIT License
5 stars 10 forks source link

Add autoheight to power grid #27

Open mboegem opened 5 years ago

mboegem commented 5 years ago

For a number of projects I am involved in the transition from smart- to NG client. As a replacement for the datasetgrid (servoy-plugins.de), the power grid is used. The datasetgrid however could handle text wrapping where the rowheight was expanding with the number of text lines. The AG grid seems to have this possibility by using 'autoheight', but this is currently not possible in the power grid. Could this be added as an option?

SteveHawes commented 5 years ago

Hi Mark,

You can achieve this in the current version by adding a gridOptions property called domLayout and setting it to autoHeight. You should then set the responsiveHeight property to 0. See screenshot. image I currently use this in my solution and it works well

SteveHawes commented 5 years ago

Sorry Mark - misread this but I believe you can do exactly the same thing with the columnDef properties: image In the interests of full disclosure though - I've not used or tested this!!