radtreeview set image size

4 posts, 1 answers
  1. Mario
    Mario avatar
    75 posts
    Member since:
    Jun 2009

    Posted 04 Nov 2010 Link to this post

    hi,

    i searched the online help and the forum, but i couldn't find a way to help me with image size.

    i set the image url for every Treenode, but i don't know how to limit the size / set the size of the treenode's image.

    it should scare down the image's size to like 16px x 16px.

    thanks Mario
  2. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 09 Nov 2010 Link to this post

    Hi Mario,

    RadTreeView doesn't scale the images automatically. You can try to set their width and height in css like this:

    .RadTreeView .rtImg {
     width: 16px !important;
     height: 16px !important;
    }

    but this will be applied to the images for all the nodes.

    Regards,
    Yana
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mario
    Mario avatar
    75 posts
    Member since:
    Jun 2009

    Posted 10 Nov 2010 Link to this post

    Thanks, working properly!

    Please give me a link to the legend/description where i can find all information about the css styles. like (.RadTreeView .rtImg being the radtreeviews image properties)

    thanks again!
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Nov 2010 Link to this post

    Hello Mario,


    The following documentation shows important CSS selectors and descriptions for RadTreeView style sheets.
    CSS Skin File Selectors

    Also check this help documentation :Understanding the Skin CSS File


    -Shinu.
Back to Top