AUTHOR: Veselina Raykova
DATE POSTED: June 19, 2018
This article provides two possible approaches for modifying the default collapse/expand buttons of the split bars in RadSplitter. You can choose between using custom image buttons, or enlarging the default font icon arrows, along with increasing the width of the Splitbar and the corresponding html elements.
Set the desired Splitbar width through the Splitter's SplitBarsSize property and pass the path to the desired custom icons to the collapse/expand button elements (you will also need to modify the default dimensions of the buttons):
<
telerik:RadSplitter
ID
=
"RadSplitter1"
runat
"server"
SplitBarsSize
"20"
>
...
</
/*Vertical Splitbars*/
.rspCollapseBarExpand, .rspCollapseBarExpandOver,
.rspCollapseBarCollapse, .rspCollapseBarCollapseOver{
height
:
45px
!important
;
/*the height of your button-image */
line-height
width
20px
background-position
0
}
.rspCollapseBarExpand{
background-image
url
(
"./icons/btn-right.png"
)
.rspCollapseBarExpandOver{
"./icons/btn-right-hover.png"
.rspCollapseBarCollapse{
"./icons/btn-left.png"
.rspCollapseBarCollapseOver{
"./icons/btn-left-hover.png"
/*Horizontal Splitbars*/
.rspCollapseBarHorizontalExpand, .rspCollapseBarHorizontalExpandOver,
.rspCollapseBarHorizontalCollapse, .rspCollapseBarHorizontalCollapseOver{
.rspCollapseBarHorizontalExpand{
"./icons/btn-down.png"
.rspCollapseBarHorizontalExpandOver{
"./icons/btn-down-hover.png"
.rspCollapseBarHorizontalCollapse{
"./icons/btn-up.png"
.rspCollapseBarHorizontalCollapseOver{
"./icons/btn-up-hover.png"
Set the desired Splitbar width through the Splitter's SplitBarsSize property and overwrite the following styles in order to enlarge the default font-size of the expand/collapse buttons:
.RadSplitter .rspCollapseBarExpand:before,
.RadSplitter .rspCollapseBarCollapse:before {
font-size
24px
.RadSplitter .rspCollapseBarHorizontalExpand:before,
.RadSplitter .rspCollapseBarHorizontalCollapse:before {
Resources Buy Try