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

Is it possible to change the height of a TreeView hover highlight on per node basis?

1 Answer 27 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 12 Jun 2012, 08:36 PM
I have a someone complicated RadTreeView object with nodes in various formats. The top level nodes are created in the aspx.cs code behind, but the rest are created via a call to the same WebService function. The resulting child nodes may have a different appearance depending on the content.

What I would like to do is to adjust the hover and selected CSS classes on a per node basis so that the highlight covers the full height of the node. I cannot do this on a node-level basis because not all level 3 nodes (for example) have the same layout.

In the attached image, I have combined several TreeView screen captures to show how the highlighting currently appears for various nodes. The confusing part is that the top level node created in code behind has a hover highlight that coves the entire node height. I'd be glad to override the styles using declarations on the local aspx page--just couldn't find the right documentation.

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 15 Jun 2012, 01:18 PM
Hello Tom,

 
You can refer to Understanding the Skin CSS File and  CSS Skin File Selectors where is provided deep information how to use different selectors in RadTreeView.

Hope this will be helpful. If your case is somehow different please provide some code that or a live URL that will help us observe this unusual behavior.

All the best,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
Tom
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or