Hello everyone,
I'm trying to set the column widths in an arraygrid in percentages without success.
When I create the arraygrid without width definition, every column have the same width, and the titles are readable.
When I create the arraygrid with absolute widths definition, the columns have the correct widths, and the titles are readable.
When I create the arraygrid with percentages widths in the definition, the columns have the correct widths, but the titles are not readable (only the first few pixels are present)
No persistid is set
Is it possible to use arraygrid with column widths in percentages?
Kind regards
Wim
Testcode
Code:
String[] titles = new String[4];
String[] widths = new String[4];
titles[0] = "Aantal";
titles[1] = "Drank";
titles[2] = "EH-prijs";
titles[3] = "Totaal";
widths[0] = "15%";
widths[1] = "55%";
widths[2] = "15%";
widths[3] = "15%";
m_ticketgrid.setWidths(widths);
m_ticketgrid.setTitles(titles);