Disable hover and selected image!

5 posts, 1 answers
  1. Jan Pfeffer
    Jan Pfeffer avatar
    55 posts
    Member since:
    Aug 2006

    Posted 23 Feb 2010 Link to this post

    Hey at Telerik

    I have a RadTreeView with skin Office_2007 applied.

    Is there any way of disabling the hover and selected images on the nodes.

    I have configured the RadTreeView with TriState checkboxes and do not need the whole hover & select logic.

    Sincerly Jan
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Feb 2010 Link to this post

    Hi Jan,

    Add the following CSS on page in order to prevent the style applied for hover and selected nodes.

    CSS:
     
        <style type="text/css"
            .RadTreeView_Office2007 .rtSelected .rtIn 
            { 
                background-imagenone !important; 
                color#00156e !important; 
                bordernone !important; 
                background-color: Transparent !important; 
            } 
            .RadTreeView_Office2007 .rtHover .rtIn 
            { 
                padding3px 2px 2px !important; 
                color#00156e !important; 
                bordernone !important; 
                background-color: Transparent !important; 
                background-imagenone !important; 
            } 
        </style> 

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jon Shipman
    Jon Shipman avatar
    43 posts
    Member since:
    Nov 2009

    Posted 17 May 2010 Link to this post

    It looks like there's a parameter left out of the padding property.  Without the correction, in my case, my nodes "wiggled over" when I hovered over them.

    I also had to add this line to the .rtSelected .rtIn class so it didn't wiggle when I hovered over selected items.

    padding: 3px 2px 2px 3px !important; 


  5. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 22 Sep 2010 Link to this post

    Is there a generic way of setting this in code yet?  Such as HoverHighlight = false & SelectedHighlight = false.  Using a CSS replacement is a cumbersome way of disabling an unwanted feature...

    Regards,

    Jon


  6. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 27 Sep 2010 Link to this post

    Hi Jon,

    No, there isn't such a feature. We have thought about that kind of functionality, but considering the tools that we provide for templating, skinning and appearance changes, the implementation to such a requirement comes down to relatively small amount of effort, which successfully is then reused.

    Hope this will not be too inconvenient and will not have any negative impact on your project.
    Thanks for you understanding!


    Regards,
    Nikolay Tsenkov
    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017