My application has a requirement that users be able to specify the font-size (in %) of my ListGrid's column contents. I have a dialog that allows them to select the font-size from a dropdown, which I then save along with other preferences and apply to the ListGrid.
Unfortunately, it appears that overriding getCellCSSText() is insufficient, because this method applies cssText to the <td> element of a cell, and not to its child <div>, which does not inherit font-size attributes.
It's also not enough to set the base style of a cell/column, unless I want to configure a full set of CSS rules for every single possible combination of font-size choices!
What other options do I have? Is there something I can override to access the CSS text of the <div> that *actually* contains the cell contents?
Thanks!
Unfortunately, it appears that overriding getCellCSSText() is insufficient, because this method applies cssText to the <td> element of a cell, and not to its child <div>, which does not inherit font-size attributes.
It's also not enough to set the base style of a cell/column, unless I want to configure a full set of CSS rules for every single possible combination of font-size choices!
What other options do I have? Is there something I can override to access the CSS text of the <div> that *actually* contains the cell contents?
Thanks!
Comment