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

change the color of gridrow on mouse hover

4 Answers 666 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ravi Prakash
Top achievements
Rank 1
Ravi Prakash asked on 25 Jun 2010, 12:54 PM
Hi telerik team,


I am trying to use the RAD grid view for winform. What i need is to change the color as the user moves the mouse over the rows.
I.e. A row should change its color when user hovers the mouse and as the user leaves the mouse from this row, it should again change color. This is very critical for me so any help will be appreciated.

Please reply ASAP

Thanks
Ravi

4 Answers, 1 is accepted

Sort by
0
Steve Hogg
Top achievements
Rank 1
answered on 30 Jun 2010, 04:16 AM
Hi Ravi

Since you don't yet have a Telerik response, I will chime in. You should be getting this feature automatically with your theme. As the mouse moves into a row it will modify the border slightly and change the backcolor of the row. When the mouse enters a new row or leaves the grid, the unselected rows return to the normal color.

Which theme are you using?

Steve
0
Jack
Telerik team
answered on 01 Jul 2010, 11:33 AM
Hi Ravi Prakash,

This is the default behavior of RadGridView. However, you can disable it by setting the EnableHotTracking property to false. You can handle the RowFormatting event, when you want to customize the behavior. Please check the following KB article and our online help for more details. Another option is to use our new Visual Style Builder and modify any of our existing themes. I hope this helps.

@Steve: Thanks for your time and reply.

Best wishes,
Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ravi Prakash
Top achievements
Rank 1
answered on 06 Jul 2010, 11:28 AM
Hi Jack,

thanks for ur reply.

My problem is i have created the custom theme,but i'm unable to set the mouse hover color for the row of the radgridview through Visual Style Builder.
I have tried by giving the backcolor[using/created the gradient repository] to the GridDataRowElement.Hottracking[Element States dock window] ,but mousehover is appearing in the preview of VSB but when the theme is applied it is not applicable to my application gridview.

Please reply to my issue

@Thanks Steven

Thanks
Ravi


0
Boryana
Telerik team
answered on 07 Jul 2010, 01:15 PM
Hi Ravi Prakash,

I was not able to reproduce your issue. If you would like us to address your issue, please open a new Support Ticket and attach your theme. Thus we will be able to locate the problem.

I am looking forward to hearing from you.

Sincerely yours,
Boryana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Ravi Prakash
Top achievements
Rank 1
Answers by
Steve Hogg
Top achievements
Rank 1
Jack
Telerik team
Ravi Prakash
Top achievements
Rank 1
Boryana
Telerik team
Share this question
or