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

Increasing the Hight of the Highlight

3 Answers 27 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 11 Dec 2012, 02:37 PM
Have added 30px x 30px Image to a RadPanelItem on a RadPanelBar which looks fine until I hover over the item when transparent highlight cuts through the image.  The Height attribute does not seem to increase the size of the highlight, how is this done?

Thanks Darren

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 14 Dec 2012, 12:11 PM
Hello Darren,

Could you please elaborate a bit more on your scenario since we are unable to reproduce that issue locally?
Providing your markup code and a sample image file would be very helpful in order to inspect the problem deeper and be more helpful.

Regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Darren
Top achievements
Rank 1
answered on 14 Dec 2012, 01:03 PM
Have just made a simple list of links using the panel bar.  At present no code behind has been added, I was just looking at using the panel bar for a navigaton page.
        <telerik:RadPanelItem runat="server" Text="Statutory Reports" Expanded="true">
            <Items>
                <telerik:RadPanelItem runat="server" Text="Performers List" Expanded="true" ImageUrl="~/Secure/Images/_HomePage/def_GP.png" Height="32"  NavigateUrl="~/Secure/ContractorProfileList.aspx">
                </telerik:RadPanelItem>
                 
                <telerik:RadPanelItem runat="server" Text="Screening Returns" Expanded="true">
                    <Items>
                        <telerik:RadPanelItem runat="server" Text="Cervical Cancer Screening" ToolTip="KC53 Aggregated Annual Returns" Expanded="true" ImageUrl="~/Secure/Images/_HomePage/def_KC53.png">
                        </telerik:RadPanelItem>
                        <telerik:RadPanelItem runat="server" Text="Breast Cancer Screening" ToolTip="KC63 Aggregated Annual Returns" Expanded="true" ImageUrl="~/Secure/Images/_HomePage/def_KC63.png">
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
    </Items>
</telerik:RadPanelBar>

0
Accepted
Boyan Dimitrov
Telerik team
answered on 17 Dec 2012, 03:37 PM
Hello Darren,

It seems that the image size used for PanelBarItem icon is larger than our fixed size hover effect area in our sprite image. In this case I would recommend you two approaches to choose from:
  1. If you want to keep the rounded corners of the hover effect you will need to modify your sprite image and enlarge the hover effect area marked with red in the attached image.
  2. The second approach will not give you rounded corners hover effect but it is really easy for implementing and flexible if you will change your PanelBarItem height property. Disabling the hover effect loaded from the sprite image for the sub level elements and set back-ground color for those elements will give you the desired look. Below are the css classes that you can use for the second approach:

<style type="text/css">
        .RadPanelBar_Default .rpLink:hover{
             background: #afd8a4 !important;}
        .RadPanelBar_Default .rpGroup a.rpLink, .RadPanelBar_Default .rpGroup a.rpLink .rpOut {
            background-image:none !important;
        }
    </style>
Hope that this will be helpful.

Regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
PanelBar
Asked by
Darren
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Darren
Top achievements
Rank 1
Share this question
or