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

.rtPlus/rtMinus - Background-image

1 Answer 111 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Spire
Top achievements
Rank 1
Spire asked on 25 Feb 2010, 11:47 AM
Hey,

I having trouble showing a custom image as background-image for ".rtPlus" and ".rtMinus". The image is show when the treenode is not expanded, but on hover and when the menu is expanded the image disappear.

Link to my page

I added this in my css file:
.RadTreeView .rtPlus  {background-image: url('../images/treeview/plus.png') !important; height: 10px !important; width: 12px !important; }
.RadTreeView .rtPlus:hover { background-image: url('../images/treeview/plus.png') !important; height: 10px !important; width: 12px !important; }
.RadTreeView .rtMinus {background-image: url('../images/treeview/minus.png') !important; height: 10px !important; width: 12px !important;}
.RadTreeView .rtMinus:hover {background-image: url('../images/treeview/minus.png') !important; height: 10px !important; width: 12px !important;}

Could anyone help me please?


1 Answer, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 25 Feb 2010, 11:51 AM
Hi Spire,

Please add also the following css styles:

.RadTreeView .rtPlus, .RadTreeView .rtMinus {
   background-position:0 0 !important;
}


All the best,
Yana
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
TreeView
Asked by
Spire
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or