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

Can we have multiple images on panelitem

1 Answer 68 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Susan
Top achievements
Rank 1
Susan asked on 06 Apr 2011, 03:18 AM
Is it possible to have 2 images on the radpanelitem? I would like an arrow on the left side that points down when the panel is expanded, and points to the right when the panel is not expanded. And then I would like an image on the right side that I change dynamically in the code. And of course in-between the 2 images I have the Text..

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 11 Apr 2011, 11:52 AM
Hello Susan,

You can apply the following css class selectors to achieve the desired effect. However, you will also need to change the current sprite of the arrow image to match the arrows that you need to apply. I have attached the current sprite of the arrow image along with the class selector(that is the third one below) where you need to apply the sprite:
/*places the image to the right*/
div.RadPanelBar .rpImage
{
    border: 0 none;
    float: right;
}
 
/*places the arrow image to the left*/
div.RadPanelBar .rpExpandable .rpExpandHandle,
div.RadPanelBar .rpExpanded .rpExpandHandle
{
    float: left;
    margin: 5px 5px 0 6px;
}
 
/*the sprite of the arrow images*/
div.RadPanelBar_Default .rpExpandable span.rpExpandHandle,
div.RadPanelBar_Default .rpExpanded span.rpExpandHandle
{
    background-color: transparent;
    background-image: url("PanelBarArrows.png");
    background-repeat: no-repeat;
}
 
Kind regards,
Kate
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
PanelBar
Asked by
Susan
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or