This is a migrated thread and some comments may be shown as answers.

radtreeview set image size

3 Answers 237 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 2
Mario asked on 04 Nov 2010, 06:45 PM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 09 Nov 2010, 04:53 PM
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
0
Mario
Top achievements
Rank 2
answered on 10 Nov 2010, 11:47 AM
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!
0
Shinu
Top achievements
Rank 2
answered on 10 Nov 2010, 01:34 PM
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.
Tags
TreeView
Asked by
Mario
Top achievements
Rank 2
Answers by
Yana
Telerik team
Mario
Top achievements
Rank 2
Shinu
Top achievements
Rank 2
Share this question
or