Need sample program with new expand and collapse image

8 posts, 0 answers
  1. Medac
    Medac avatar
    79 posts
    Member since:
    Sep 2008

    Posted 03 Nov 2009 Link to this post

    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
  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 03 Nov 2009 Link to this post

    You could try:
     
    <style type="text/css">  
    .RadTreeView_MySkin .rtPlus:hover,   
    {  
         .... 
    }  
      
    .RadTreeView_Default .rtMinus:hover  
    {  
         .... 
    }  
    </style>  

  3. Medac
    Medac avatar
    79 posts
    Member since:
    Sep 2008

    Posted 03 Nov 2009 Link to this post

    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>

  4. Yana
    Admin
    Yana avatar
    5023 posts

    Posted 04 Nov 2009 Link to this post

    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.
  5. Medac
    Medac avatar
    79 posts
    Member since:
    Sep 2008

    Posted 04 Nov 2009 Link to this post

    Not working

    Regards,
    Medac
  6. Medac
    Medac avatar
    79 posts
    Member since:
    Sep 2008

    Posted 04 Nov 2009 Link to this post

    Can anybody give me some sample to acieve the above functionality?

    Regards,
    Medac
  7. Medac
    Medac avatar
    79 posts
    Member since:
    Sep 2008

    Posted 04 Nov 2009 Link to this post

    Help to solve the above problem............................... plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
  8. Yana
    Admin
    Yana avatar
    5023 posts

    Posted 06 Nov 2009 Link to this post

    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.
Back to Top