Hi,
I'm using a ListGrid to display some data, and so far have managed to customize it mostly how I want it. However, I've not been able to figure out how to set the initial column width to be enough to make all the data in that column visible.
Say for instance I have 30 columns named col1, col2,... col30. Some columns are empty, some have the data "foobar", and some have the data "12345678901234567890". I ideally want the empty columns to be just wide enough to display just the column heading, the column with data "foobar" just wide enough to display "foobar", and the column with the long number just wide enough to fully display the number.
The ListGridField.setWidth() method only takes "*", a percentage, or a number of pixels, so this doesn't look supported. Has anybody managed to do this?
I'm using a ListGrid to display some data, and so far have managed to customize it mostly how I want it. However, I've not been able to figure out how to set the initial column width to be enough to make all the data in that column visible.
Say for instance I have 30 columns named col1, col2,... col30. Some columns are empty, some have the data "foobar", and some have the data "12345678901234567890". I ideally want the empty columns to be just wide enough to display just the column heading, the column with data "foobar" just wide enough to display "foobar", and the column with the long number just wide enough to fully display the number.
The ListGridField.setWidth() method only takes "*", a percentage, or a number of pixels, so this doesn't look supported. Has anybody managed to do this?
Comment