Radtreeview node shows different color in Onclick

4 posts, 0 answers
  1. Nagendra
    Nagendra avatar
    35 posts
    Member since:
    Jan 2011

    Posted 22 Jul 2011 Link to this post

    Hi,

          I have radtreeview and radgrid in my page.
         
          My problems are:
         1. I am binding radtreeview dynamically from database, Initially after binding radtreeview expand is not working. After clicking on node   radtreeview expand working fine.

          2. When i clicking on node it's color will be changed to light blue color, how can i remove this color from node. 

    below is the screen shot of my issues. Thanks in advance.


    Thanks,
    Nagendra.
  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 22 Jul 2011 Link to this post

    Hello Nagendra,

    When a node is clicked it gets the style rtSelected applied to it. To remove the background when a node is selected, you can add this to your page:

    .RadTreeView .rtUL .rtLI .rtSelected .rtIn
    {
        background: none !important;
    }

    I hope that helps.
  3. Nagendra
    Nagendra avatar
    35 posts
    Member since:
    Jan 2011

    Posted 27 Jul 2011 Link to this post

    Hi Kevin,

           Thanking you for giving reply.
           removing background color is working fine.
           I have another problem in radtreeview
           1. I am binding radtreeview dynamically from database, Initially after binding radtreeview expand is not working. After clicking on   node   radtreeview expand working fine.

       Please provide me help to resolve this issue.

    Thanks,
    Nagendra.
  4. Plamen
    Admin
    Plamen avatar
    3049 posts

    Posted 29 Jul 2011 Link to this post

    Hi Nagendra,

    "Expand" is a property of the node so you can try to set it in the NodeDataBound event. You can have a look at our Binding to Array, ArrayList and Generic List help or Programmatic DataBinding demo.

    Hope this is helpful.

    Greetings,
    Plamen Zdravkov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top