Is there a way to get a title on a pane to include an image? As per the attached. The left part shows what it is now and the right is roughly how I'd like it to look.
Obviously not a critical requirement but enhances the appearance of the page.
Regards,
Jon
2 Answers, 1 is accepted
0
Accepted
Marin Bratanov
Telerik team
answered on 01 Jul 2011, 01:51 PM
Hello Jon,
I do not see an image attached, but I assume that you are referring to a RadSlidingPane, as the "regular" RadPane does not have a titlebar. To add an image to that you can add a custom CSS rule to add a background image to the titlebar. In the code snippets below you can see how to do that and also the usage of its parent RadPane's CssClass property to distinguish one splitter from the other. Please note that this approach has the limitation that the SlidingPanes that are declared in the same RadPane can only have the same image.
The CSS rule:
Many thanks Marin, that's exactly what I needed. I added padding-left:24px; to the css to move the text element over as it was on top of the text to start with - seems to work just fine (in IE anyway!).
Yeah I'd already got the IconUrl bit done - I was kind of suprised that if you could set it for the tab that it wasn't a property for the pane title.