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

2 posts, 0 answers
  1. Tom
    Tom avatar
    49 posts
    Member since:
    Oct 2010

    Posted 12 Jun 2012 Link to this post

    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.
  2. Plamen
    Plamen avatar
    3055 posts

    Posted 15 Jun 2012 Link to this post

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