Treeview CSS not used

3 posts, 0 answers
  1. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 08 Jan 2013 Link to this post

    I have this
        <style type="text/css">
     
    html .RadTreeView_Default,
    html .RadTreeView_Default a.rtIn,
    html .RadTreeView_Default .rtEdit .rtIn input {
      font-familyarial !important;
            font-size8pt !important;
            colorred !important;
    }
     
        </style>
    and my simple tree
        <telerik:RadTreeView ID="RadTreeView1" runat="server" Width="300px"   style="white-space:normal"  
            OnClientNodeExpanded="rtvExplore_OnNodeExpandedCollapsed"
                        OnClientNodeCollapsed="rtvExplore_OnNodeExpandedCollapsed" 
         >
        </telerik:RadTreeView>

    but the CSS has no effect on the format?
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 09 Jan 2013 Link to this post

    Hello David,

    Try using the styles that you are applying with the following css class selector:
    div.RadTreeView_Default,
    div.RadTreeView_Default a.rtIn,
    div.RadTreeView_Default .rtEdit .rtIn input
    {
    font-family: arial !important;
            font-size: 8pt !important;
            color: red !important;
    }

    All the best,
    Kate
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 09 Jan 2013 Link to this post

    Perfect,

    thank you
Back to Top