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

Need place folder image instead of '+' symbol in tree structure

2 Answers 68 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Medac
Top achievements
Rank 1
Medac asked on 13 Oct 2009, 07:27 AM
Hi,

I am using RadTreeView Control. I want place folder image instead of '+' symbol. Input for RadTreeViewControl is through xml file. Where can I add the image and remove '+' symbol from tree structure?

I have visited this http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/xmlfile/defaultcs.aspx here .xml file is being referred, but file content has not been provided.
Can anybody please help me in this?

Regards,
Medac

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Oct 2009, 12:05 PM
Hi Medac,

I tried adding following style in order to change the image for expand/collapse of RadTreeView.

CSS:
 
<style type="text/css"
.RadTreeView_Default .rtPlus,  
    background-imageurl('../Images/Collapse.gif') !important; 
    height10px !important; 
    width10px !important; 
 
.RadTreeView_Default .rtMinus 
    background-imageurl('../Images/Expand.gif') !important; 
    height10px !important; 
    width10px !important; 
</style> 

-Shinu.
0
Medac
Top achievements
Rank 1
answered on 14 Oct 2009, 04:56 AM
Shinu,

I have added the CSS what you have given. Still I am facing following problems.

1. On load it didnt change the Symbols. Still it is displaying + sign.
2. On Click of '+' sign image is getting changed. But on mouse over image is getting disappeared.

Can you please help me!!!

Regards,
Medac
Tags
TreeView
Asked by
Medac
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Medac
Top achievements
Rank 1
Share this question
or