Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Drew on Apr 21, 2008 20:40
open dhtmlx forum
tree.setIconSize Does not work

Hi,

I'm trying to either get rid of (preferably) or shrink the icons (folder and document) in DHTMLX Tree and if I try to do it in Javascript I get an error

tree.setIconSize(4,4); "Error: Object doesn't support that property or method"

I've tried adding imheight="4px" imwidth="4px" to an item in the XML and when I do my tree does not render at all.

I'm using v1.6 Standard Edition to try before I buy. Am I getting these errors because these features are reserved for the Professional Edition?

Could you help me disable the icons? Big deadline tomorrow and I'm pulling out my hair.

Cheers,

Drew
Answer posted by Support on Apr 22, 2008 02:02
>>tree.setIconSize(4,4); "Error: Object doesn't support that property or method"
This method available in pro version only

You can try to set the global image size directly
    tree.def_img_x="4px";
    tree.def_img_y="4px";

To fully hide images in tree you can use
    tree.enableTreeImages(false);