Disabled tree node color

3 posts, 0 answers
  1. Dustin
    Dustin avatar
    7 posts
    Member since:
    Aug 2010

    Posted 28 Mar 2011 Link to this post

    I am trying to change the color of a disabled rad tree node to something other then the default.  I attempted the following

    .Custom{
        color:red !important;
    }
     
    Protected Sub rtvNav_NodeDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles rtvNav.NodeDataBound
            e.Node.Enabled = False
            e.Node.DisabledCssClass = "Custom"
        End Sub

    but this did not override the color, i.e. the node is still gray.  I found the following post http://www.telerik.com/community/forums/aspnet-ajax/treeview/disabled-node-font-color.aspx but it is almost two years old and not sure if it still applies.  The solution is problematic for me as well.  The solution says to define 

    .RadTreeView_Default .rtDisabled .rtIn
    {
        color: black !important;
    }

    Problems:
    1.  The user is allowed to select their own theme so I'd have to define this for all of Telerik's themes
    2.  I only want to apply this to a specific tree in my application and not all the trees in my application.  There could be multiple trees on the same page, one with the new style, and multiple that should behave in the default way (i.e. disabled nodes grey).

    What can I do to get disabled nodes to color differently in one situation and not the next?
  2. Dustin
    Dustin avatar
    7 posts
    Member since:
    Aug 2010

    Posted 31 Mar 2011 Link to this post

    Bump
  3. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 07 Apr 2011 Link to this post

    Hello Dustin,

    Could you, please, try the following:
    .Custom .rtIn
    {
        color: Red !important;
    }


    Kind 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