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

Add Images in place of expander in RadTreeView C#

1 Answer 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ruchit
Top achievements
Rank 1
Ruchit asked on 13 Dec 2010, 02:18 AM
Hello Friends,

I am planning to add images in place of the expanders which are present in the RadTreeView control.

I want to accomplish my task using C#.

Any help would be appreciated.
Thanks.


Best Regards,
Ruchit


1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 14 Dec 2010, 09:20 AM
Hello Ruchit,

In order to change the image , you should change the CSS class of the span where the image is rendered. There are two classes :rtMinus and rtPlus, the first one represents the collapsed node and the second one the node when it's expanded:

div.RadTreeView .rtPlus {
 
    background-image: url("expandImage") ;
}

div.RadTreeView .rtMinus {
     background-image: url("collapseImage");
}

All the best,
Dimitar Terziev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
General Discussions
Asked by
Ruchit
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or