Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How do you change a ListGrid cell's css text when the row is hovered over or selected?

    Hi,

    Is there any way to change the CSS text of a cell when the user selects a row or hovers over a row? We are overriding getCellCSSText() to change the background colors of cells at the time the grid is drawn. However, when the user hovers over the row, we want these cells to revert back to the default background color. The issue is illustrated below:



    Click image for larger version

Name:	background_color_issue.png
Views:	263
Size:	82.1 KB
ID:	254418

    We are using SmartClient Version: v11.1p_2018-07-19/PowerEdition Deployment (built 2018-07-19)
    Thanks.
    Attached Files

    #2
    Not sure we’re following the question: is the answer you’re looking for that you simply need to detect whether the current row is the hover row (use getEventRow()) or is selected (use isSelected()) and in those case, not return CSS that changes the BG color?

    Comment


      #3
      Originally posted by Isomorphic View Post
      Not sure we’re following the question: is the answer you’re looking for that you simply need to detect whether the current row is the hover row (use getEventRow()) or is selected (use isSelected()) and in those case, not return CSS that changes the BG color?
      Yes, this is the intention.

      Comment

      Working...
      X