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

Change The Images Of A RadSplitBar

6 Answers 132 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 23 May 2008, 07:11 PM
I am using the Vista skin for my RadSplitter.  Some users have requested that I make the collapse/expand arrows larger.  I have changed the expand/collapse images found in the C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2008\Skins\Vista\Splitter folder.  To my dismay, this did not change my control.  Is there something else I need to do?

Seth

6 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 27 May 2008, 12:00 PM
Hello Seth,

In order to change the RadSplitBar images you should override the default ones in the CSS classes collapseBarExpand and collapseBarCollapse. If you want to change also the images which are shown when you mouseover the RadSplitBar you should also override them in the CSS classes collapseBarExpandOver and collapseBarCollapseOver.

What you should do is to change the background image as shown below:

    .collapseBarExpand  
    {  
       backgroundurl('Images/splitbar_expand_h.gif') !important;  
    }  
    .collapseBarExpandOver  
    {  
       backgroundurl('Images/splitbar_expand_v.gif') !important;  
    }  
      
    .collapseBarCollapse  
    {  
       backgroundurl('Images/splitbar_collapse_h.gif') !important;  
 
    }  
     .collapseBarCollapseOver  
    {  
       backgroundurl('Images/splitbar_collapse_v.gif')  !important;  
 
    } 

Please, note that you should use the keyword !important in order to override the skin - if it is missing your changes will not take effect.


Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Seth
Top achievements
Rank 1
answered on 27 May 2008, 07:01 PM
Where do I make these changes?  I tried changing the Splitter.Vista.css file in the C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2008\Skins\Vista folder, but there is still no effect.  I also moved the image to a subfolder under my project as you can see in my changes:

.RadSplitter_Vista .collapseBarCollapse  
{     
    cursorpointer;  
    width3px;  
    height5px;  
    text-align:center;  
    backgroundurl(RadControls/Splitter/splitbar_collapse_h.gif) !important;  
}  
 
.RadSplitter_Vista .collapseBarCollapseOver  
{     
    cursorpointer;  
    width3px;  
    height5px;  
    text-align:center;  
    backgroundurl(RadControls/Splitter/splitbar_collapse_h.gif) !important;  
}  
 
.RadSplitter_Vista .collapseBarCollapseError  
{     
    cursorpointer;  
    width3px;  
    height5px;  
    text-align:center;  
    backgroundred url(RadControls/Splitter/splitbar_collapse_h.gif) !important;  
}  
 

What am I doing wrong?

Seth
0
Svetlina Anati
Telerik team
answered on 28 May 2008, 03:18 PM
Hi Seth,

You have to put these setting in your page's head, within a <style> tag. Please, also note that you do not need to add a sufix with the skin's name.

For your convenience I am attaching a sample demo project. I hope that you will find it helpful.

Kind regards,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Seth
Top achievements
Rank 1
answered on 28 May 2008, 03:52 PM
Thank you Svetlina,

That extra explanation and example were perfect.

Seth
0
Ram
Top achievements
Rank 1
answered on 21 Apr 2010, 08:28 PM
Hi,

I took this code which was sent in the zip file and tried running it, it still gives me the default images for splitters and if I specify a skin, it gives that skin. The images do not override the default ones. Is there something else I need to change?
0
Svetlina Anati
Telerik team
answered on 23 Apr 2010, 12:37 PM
Hello Ram,

Would you please provide more details about the version you are using? This thread is very old and the skins have been changed since then. If you are using the latest version I suggest to test with the following CSS:

.rspCollapseBarExpand
        {
            background-image: url('Images/splitbar_expand_h.gif') !important;
        }
        .rspCollapseBarExpandOver
        {
            background-image: url('Images/splitbar_expand_v.gif') !important;
        }
        .rspCollapseBarCollapse
        {
            background-image: url('Images/splitbar_collapse_h.gif') !important;
        }
        .rspCollapseBarCollapseOver
        {
            background-image: url('Images/splitbar_collapse_v.gif') !important;
        }
 

Kind regards,
Svetlina
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
Splitter
Asked by
Seth
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Seth
Top achievements
Rank 1
Ram
Top achievements
Rank 1
Share this question
or