The data in my ListGrid columns is too tight to each other. No matter what value I set for cellPadding, it doesn't seem to matter. Should this actually be done via custom styling?
Announcement
Collapse
No announcement yet.
X
-
I think the documentation should then be altered, because that mentions cellPadding as a valid attribute for a grid, even the code shows it is, but it isn't working.
If I were to do it with a class how can I set it for the whole grid? I now set the styling via
Code:.listTable td { padding: 5px; }
Last edited by wallytax; 16 Oct 2014, 12:24.
Comment
-
The cellPadding is applied, the thing is, any padding in the CSS overrides it, so that's where you should generally apply padding.
Modify per-cell styling via listGrid.baseStyle.
Do not use selectors like you are attempting; that relies on an assumption that all the TDs we generate happen to be ones you want to style (not the case).
Comment
Comment