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

Need sample program with new expand and collapse image

7 Answers 111 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Medac
Top achievements
Rank 1
Medac asked on 03 Nov 2009, 10:20 AM
Hi,

I need to have tree with 'Closed folder' and 'open folder' image instead of '+' and '-' icons in the tree. I tried doing this by changing rptPlus and rptMinus but here on mouse hover the image is getting disappered.

I want a solution for this.... :(....
I am in the middle of my requirement implementation where i cant go back to old asp tree control only for this image display issue.

I hope someone should help in this....

Regards,
Medac

7 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 03 Nov 2009, 10:45 PM
You could try:
 
<style type="text/css">  
.RadTreeView_MySkin .rtPlus:hover,   
{  
     .... 
}  
  
.RadTreeView_Default .rtMinus:hover  
{  
     .... 
}  
</style>  

0
Medac
Top achievements
Rank 1
answered on 04 Nov 2009, 05:05 AM

Hi,
I have added below style in my code. Still facing same problem.i,e disappering of open folder image......
Am I doing any wrong in the below code?

Please help me.....

<style type="text/css"> 
        .RadTreeView .rtPlus  
        { 
            background-image: url('../Images/Folderclosed.gif') !important; 
            height: 10px !important; 
            width: 12px !important; 
        } 
         
        .RadTreeView .rtMinus
        { 
            background-image: url('../Images/Folderopen.gif') !important; 
            height: 10px !important; 
            width: 12px !important;         
        }
        .RadTreeView_MySkin .rtPlus:hover,   
        {  
            background-image: url('../Images/Folderclosed.gif') !important; 
            height: 10px !important; 
            width: 12px !important; 
        }  
          
        .RadTreeView_Default .rtMinus:hover  
        {  
            background-image: url('../Images/Folderopen.gif') !important; 
            height: 10px !important; 
            width: 12px !important;     
        }  

    </style>

0
Yana
Telerik team
answered on 04 Nov 2009, 09:16 AM
Hi Medac,

Please try it like this - without Skin name in the css class:

<style type="text/css">
        .RadTreeView .rtPlus 
        {
            background-image: url('../Images/Folderclosed.gif') !important;
            height: 10px !important;
            width: 12px !important;
        }
          
        .RadTreeView .rtMinus
        {
            background-image: url('../Images/Folderopen.gif') !important;
            height: 10px !important;
            width: 12px !important;        
        }
        .RadTreeView .rtPlus:hover 
        
            background-image: url('../Images/Folderclosed.gif') !important;
            height: 10px !important;
            width: 12px !important;
        
           
        .RadTreeView .rtMinus:hover 
        
            background-image: url('../Images/Folderopen.gif') !important;
            height: 10px !important;
            width: 12px !important;    
        
 
    </style>


Kind regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Medac
Top achievements
Rank 1
answered on 04 Nov 2009, 09:39 AM
Not working

Regards,
Medac
0
Medac
Top achievements
Rank 1
answered on 04 Nov 2009, 12:27 PM
Can anybody give me some sample to acieve the above functionality?

Regards,
Medac
0
Medac
Top achievements
Rank 1
answered on 05 Nov 2009, 05:22 AM
Help to solve the above problem............................... plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
0
Yana
Telerik team
answered on 06 Nov 2009, 12:44 PM
Hello Medac,

Could you please provide us with a live url where we could observe this issue? Thanks

Kind regards,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Medac
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Medac
Top achievements
Rank 1
Yana
Telerik team
Share this question
or