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

Disable hover and selected image!

4 Answers 117 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jan Pfeffer
Top achievements
Rank 1
Jan Pfeffer asked on 23 Feb 2010, 08:58 AM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 23 Feb 2010, 11:35 AM
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.
0
Jon Shipman
Top achievements
Rank 1
answered on 17 May 2010, 05:40 PM
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; 


0
Jon
Top achievements
Rank 1
answered on 22 Sep 2010, 10:58 AM
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


0
Nikolay Tsenkov
Telerik team
answered on 27 Sep 2010, 03:34 PM
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
Tags
TreeView
Asked by
Jan Pfeffer
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Jon Shipman
Top achievements
Rank 1
Jon
Top achievements
Rank 1
Nikolay Tsenkov
Telerik team
Share this question
or