Hello steff_dk,
You can easily achieve this, if you initialize the tree form an HTML structure (as in the demo Navigation) – the image will be displayed in its actual size (48×16 px).
If you initialize the tree from a source, you have the iconsize property, which will make the icon larger, but still square. E.g. this code will make the icon 48×48 px:
var source = [
{
icon: "../../images/48pxWide.png", iconsize: 48, label: "Mail", expanded: true, items: [
{ icon: "../../images/calendarIcon.png", label: "Calendar" },
{ icon: "../../images/contactsIcon.png", label: "Contacts", selected: true }
]
},
Then add the following style to your page, which will make the image 48×16 px:
<style type="text/css">
.jqx-tree-item img
{
height: 16px;
}
</style>
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/