jQWidgets Forums

jQuery UI Widgets Forums TreeGrid cell background color

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • cell background color #61268

    jahnvi25
    Participant

    i know to change cell background color i can use cellClassName:xxx.. but my colors for each cell is dynamic and it comes from server (there are like 50 or 60 different possible color values)..

    how can i do this with using cellClassName >
    i tried using custom renderer with div.. but because “td” has padding: 6px 4px.. its not covering whole cell..

    Thanks

    cell background color #61272

    Peter Stoev
    Keymaster

    Hi jahnvi25,

    For this scenario you can use cellClassName set to a function and depending on some conditions, you will return different CSS class.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    cell background color #61311

    jahnvi25
    Participant

    so there is no other way…all the colors comes from server…but if i have to create css.. then i have to declare 50 different css.. i would really want to avoid that ?

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

You must be logged in to reply to this topic.