On Thu, Feb 28, 2008 at 2:39 PM, kanugula <venkata.kanugula@...> wrote:
> I am trying to clear my highlighted row by using
> It clears!. But it still highlights the row with light sky color on the row.
> Do you know how to get rid of it too?
If you haven't changed from the default theme, the light sky blue is
for focused cell, while dark blue is for the selected row.
I just looked at the code and when the selection changes (i.e. when
clearSelection() is called), it fires a "changeSelection" event which
should be trapped by the Table class listener which causes Table's
_onSelectionChanged() method to be called. That method then calls
each of the scrollers' _onSelectionChanged() methods, which in turn
call each scroller's pane's _onSelectionChanged() method. The latter
causes _updateContent() to be called, specifying that only the focus
or selection has changed. That cvauses _updateRowStyles() to be
called which sould call the row renderer to update the style. You
could put this.debug("_updateRowStyles") call in this method to ensure
it's getting there.
Note, though, that if the light blue is in fact for focus, not
selection, clearing the selection will have no effect on the focus