jQWidgets Forums

jQuery UI Widgets Forums TreeGrid Change Cell Color

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Change Cell Color #62584

    simcon94
    Participant

    Hi,
    how can i change the cell background Color via cellsrender?
    With cellClassName i only can return a css class.

    Change Cell Color #62585

    Peter Stoev
    Keymaster

    Hi simcon94,

    Returning a Cell Class should be enough for changing the background color. That is basically the purpose of that setting.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Change Cell Color #62586

    simcon94
    Participant

    I will give a color with a Model to the View.
    So i can#t set the color with CellClassName

    Change Cell Color #62587

    Peter Stoev
    Keymaster

    Hi simcon94,

    Well, if you need to use only cellsRenderer, then you don’t have an option to change the cell’s color due to the reason that this function is only for instertion of HTML within the TreeGrid’s Cell and you don’t have access to the TreeGrid’s Cell to style it. For that purpose, the “cellClassName” is used.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Change Cell Color #62590

    simcon94
    Participant

    Hmmmm…..
    Ok. I must try another way……
    Sad

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

You must be logged in to reply to this topic.