VL Web: Highlight cell in list that user has moused over

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
caseywhite
Posts: 192
Joined: Thu May 26, 2016 1:17 am

VL Web: Highlight cell in list that user has moused over

Post by caseywhite »

In VL Web is there a way to highlight just the cell a user has hovered over instead of the whole row. I can turn off row highlighting and can write some code to highlight a specific cell in the row that the user has moused over, but there doesn't seem to be a way to determine which specific column the user has moused over. The mouseover event for the column only fires when you mouse over the actual column heading, not anywhere in the column. I thought about using a timer to tell me the horizontal and vertical position of the mouse but it seems to turn the value relative to the browser and not relative to the parent control. Ideally this would just be some property that you could set so that no code needs to be written but for now, if there is a way to do this by writing code, that works for me.

In doing further testing it seems like even if I can figure out the active column the theme drawstyle of the list item overrides the fact that I want to set a background color for the cell because the row selection highlighting will appear. I could turn it off at the theme level but that would affect all lists and I am just looking to affect a single list. This would seem to be true whether I click on a cell or hover over it. That is I won't see the background color until I leave the row, which is too late because essentially I want to highlight a specific cell (hover or clicked on) in the row.

It would seem there is no way to work around the current behavior. If there is a way that someone has found, it would be nice to hear how.
Post Reply