This is a migrated thread and some comments may be shown as answers.

[Solved] Disable column header class switching

1 Answer 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Samuel
Top achievements
Rank 1
Samuel asked on 14 May 2009, 06:25 PM
I've noticed that the default behavior of the RadGrid is to alter the CSS class of TH cells in the THEAD when the mouse hovers over them. I know there is a property on the client settings called "EnableRowHoverStyle;" setting this to false doesn't seem to affec this behavior, however. I need to prevent this class switching from occurring; how would I do that?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 15 May 2009, 11:31 AM
Hello Samuel,

The only way to prevent the RadGrid header CSS class switching, is to override the control client code. Please add the following Javascript code at the end of the web page:


Telerik.Web.UI.GridColumn.prototype._onMouseOver = function(e)
{
    this._owner._owner.raise_columnMouseOver(new Telerik.Web.UI.GridColumnEventArgs(this, e));
}


Please note that this is internal code, so using it might cause unexpected results in future versions (not very likely in this case, but still possible).


Regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Samuel
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or