jQWidgets Forums

jQuery UI Widgets Forums Grid Generic format for decimal columns

This topic contains 2 replies, has 2 voices, and was last updated by  Dimitar 10 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Generic format for decimal columns #58798

    Silvio
    Participant

    Hi,

    I need to format all decimal columns on my site and use () for negative numbers and also a red font.

    I’d like to know if there is a way to specify different formats for my decimal columns (I know about the d2 for 2 dec points), but I mean different number formats like for instance (999.00) instead of -999.00, for negatives.

    Also, if I want to specify red color when negatives, I imagine there is no other way other than using cellrenderer, am I correct ?

    Thanks

    Generic format for decimal columns #58813

    Silvio
    Participant

    I’m looking at the source code and we now have found the globalization.js class and we see a way of doing it

    thanks in advance

    Generic format for decimal columns #58824

    Dimitar
    Participant

    Hello Silvio,

    You would indeed have to use cellsrenderer to change the font colour of particular cells.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.