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

Hover image for pager buttons

3 Answers 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
MHenkel
Top achievements
Rank 1
MHenkel asked on 20 Jul 2016, 03:21 PM

Hi!

 

I defined an image for a  pager button with RadGrid.PagerStyle.LastPageImageUrl = "url". The downside of the approach is that there is no hover effect any more. Is it possible to define an image that is used for hover with a similar property, or do I have to use Javascript/CSS?

 

Kind regards

3 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 25 Jul 2016, 07:58 AM
Hello,

In order to set a hover image you need to manually specify a hover CSS rule. You can use the following CSS rule.
<style>
    .RadGrid .rgArrPart2 a:hover
    {
        background-color: red;
    }
</style>


Regards,
Kostadin
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
MHenkel
Top achievements
Rank 1
answered on 25 Jul 2016, 09:59 AM

Hi,

Thanks for the info on a work around.
Just to clarify: Are you saying that if I want to set hover-images I have to set half of the images via code behind and the other half via CSS?
Are there plans to include properties for the hover-images too? At the moment this seems a little unfinished to me.
I will now go and set the images by editing the sprite that is used in the navigation bar. This is at least a way to set all images at once.

Kind regards

0
Kostadin
Telerik team
answered on 28 Jul 2016, 06:35 AM
Hi Ernst,

Generally it will be best to change the image and the hover image via CSS as well as all styling of the grid. You can find more information about creating a custom skin in the following help article.

Regards,
Kostadin
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
MHenkel
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
MHenkel
Top achievements
Rank 1
Share this question
or