I'm sure it's simple, but I'm not figuring it out.
I have a column that I'm formatting as currency. However, all of the text is Left justified in that column. It would be a lot easier to read if all the values lined up and where right justified.
What do I do if I want to right justify a column... or center since we're on the topic.
Borislav, your code snippet above seems to only set the column *headers* for me.
I changed the function to apply the css to "ui.td", but it doesn't seem to work. Am I missing something?
Having a hard time with this one. The DOM for this grid is pretty hairy.
Is it still the case that there's no built-in left/right/center justification for igGrid columns?
Thanks!
Hi Dirk,Sounds like a swell idea :)However, I'm a bit skeptical about it because the igGrid's column object tends to shape the data records of the column (the headerText option being an exception of course).
From the naming convention you used, I gather that you use MVC and that's fine. Point is that this might be interpreted as CSS class for
Thus the proposed option will have a simplistic name, but its purpose will be ambiguous.Having a custom class applied to the 3 type of cells can certainly be useful and I don't think that it's that hard to accomplish using JavaScript and the grid's event(s).However if you feel that the idea for the property is a-OK, go ahead and use Feature Request form to submit it to our developers.Cheers! Borislav
CssClass would be an ideal property of the column object.