PDA

View Full Version : GridView in Internet Explorer 7 removes row highlighting



ben.biddington
11 May 2009, 8:01 AM
For some reason we are getting row highlighting removed from our GridView on initial load. Subsequent selections have correct behaviour, i.e., the selected row is coloured as expected.


We know that our selection is being applied, because of the underlying selection model.
We also know that nothing is modifying the selection model to produce the effect -- since the selection model remains as set.



There appears to be something somewhere removing the highlighting by interacting solely with the GridView. I guess this implies something internal to the GridView itself.

Sorry that's as descriptive as I can be -- this is quite confounding.

11 May 2009, 11:19 AM
does the problem manifest itself in the online examples?

mmusson
11 May 2009, 12:01 PM
There appears to be something somewhere removing the highlighting by interacting solely with the GridView. I guess this implies something internal to the GridView itself.

I fixed a problem in IE7 with a customized version of the ColumnTreePanel recently. The problem sounds similar to yours so I will describe it to see if it helps you.

The problem was that row highlighting stopped working for the last child for every node of the tree. When you clicked the row, nothing would be highlighted, but the control did consider the item to be selected. It was just that the visual indication of the selection wasn't working.

The highlight is done using a CSS style on the div that wraps the whole row. Using Firebug I could verify that the CSS style was added exactly like the other rows and the CSS style precedence was resolving the same as the other rows. So it appeared to be a CSS bug within IE. By accident I discovered that applying the CSS style directly to the divs for each column in the row worked, so that became the work around.