jQWidgets Forums

jQuery UI Widgets Forums Grid Empty row background color

This topic contains 5 replies, has 2 voices, and was last updated by  ivailo 10 years, 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Empty row background color #71273

    Siva
    Participant

    Hi Team,

    1) In a grid i have 2 rows, other rows look like empty “white color” grid rows. Is there any way to change that background white color grid rows to some other color?

    2) In a grid as empty, it look like empty “white color” grid. Is there any way to change that background white color to some other color?

    Thanks in advance.

    Empty row background color #71313

    ivailo
    Participant

    Hi Siva,

    You can use .addClass() to change the color. Here is the example.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Empty row background color #71325

    Siva
    Participant

    Hi Ivailo,

    I tried your example, It looks like grid fully same ‘lightblue’ color. I gave you two scenario, but its not a exact one.

    Please read below steps:

    In a grid i have 2 rows(altrows), that 2 rows background color as ‘lightyellow and darkyellow’. Other rows look like empty “white color” grid rows. Is there any way to change that background white color EMPTY grid rows to some other color?

    Thanks in advance

    Empty row background color #71334

    ivailo
    Participant

    Hi Siva,

    You can use custom class about every cell in your grid. To do that you have to set cellclassname of all colums. Use custom function detected all empty rows to apply them your prefered class.

    Here you can see similar article.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Empty row background color #71342

    Siva
    Participant

    Hi Ivailo,

    Is there any function do you have to detect the empty rows?

    Empty row background color #71344

    ivailo
    Participant

    Hi Siva,

    You can detect the cell’s value of a row. If all cells of a row are empty, then they will be applied with your prefered Class.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.