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

How to change row font on mouse moves

3 Answers 96 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ofer
Top achievements
Rank 1
Ofer asked on 18 Jun 2009, 08:24 AM
Hi,

I need a different font in a grid data row when the mouse is on the row, and reset the font to default when the mouse moves to another grid row.

How to do it?

I couldn't find it in the UI editor.

3 Answers, 1 is accepted

Sort by
0
gerbrand
Top achievements
Rank 2
answered on 18 Jun 2009, 09:03 AM
Hi,

You can handle this in the 'RowMouseMove' event of the radgrid.

Gerbrand
0
Ofer
Top achievements
Rank 1
answered on 18 Jun 2009, 07:49 PM
Hi,

Thanks but your answer doesn't solve the problem.

The RowMouseMove has no event args - 
1) how to know which row the mouse is on?

2) I need to restore the default font on the previous row the mouse was on - 
how to know this?

Thanks !


0
Martin Vasilev
Telerik team
answered on 23 Jun 2009, 02:31 PM
Hi Ofer,

Thank you for writing. I thing that the easiest method to apply different font size for a hovered row is using custom theme. You can prepare a custom theme by using our Visual Style Builder. Please follow the instructions below:

1. Open Visual Style Builder from Start->Telerik -> RadControls For Winforms ....->Tools -> Visual style Builder
2. Load RadGridView control from File->Load Control -> Telerik.WincontrolsUI -> RadGridView
3. Select GridDataRowElement in the Control Structure tree on the left.
4. For Initial State and other conditions set the desired font size. Last RowVisualState condition is for Hovered state. Set larger font size for it. Keep in mind that you have to set font for every one of the condition tabs, in order to restore initial size when grid row is not hovered.
5. Set new name for your custom theme
6. Save theme file File -> Save theme as
7. Add the custom theme to your project.

Do not hesitate to contact me again if you have other questions.

Kind regards,
Martin Vasilev
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
GridView
Asked by
Ofer
Top achievements
Rank 1
Answers by
gerbrand
Top achievements
Rank 2
Ofer
Top achievements
Rank 1
Martin Vasilev
Telerik team
Share this question
or