Tree v/s TreeView


#1

Hi team

I am using dhtmlxTree component in my application. I have recently moved to version 5.0.2 from 3.6. I saw in the migration documentation that you highly recommend the users to use TreeView. So I tried to use it in place of Tree. But I could not find the following APIs in TreeView:
setImagePath
setImageArrays
setStdImages
enableTreeLines - However I saw this in one of the earlier posts that TreeView still does not have this API.

But if you could let me know if you are planning to add these APIs in the TreeView in the upcoming releases.
Also, in the upcoming releases, do you plan to deprecate Tree and recommend TreeView?
Awaiting your response. Thank You.


#2

Hi,

Icon path is defined in the css. You can redefine css styles if it is needed:

[code].dhxtreeview_icon_file{
background-image: url(my_imgs/file.gif) !important;
}

.dhxtreeview_icon_folder_opened {
background-image: url(my_imgs/folder_opened.gif) !important;
}

.dhxtreeview_icon_folder_closed {
background-image: url(my_imgs/folder_closed.gif) !important;
}[/code]

But if you could let me know if you are planning to add these APIs in the TreeView in the upcoming releases.

Sorry, we do not have such plans for the upcoming releases.

do you plan to deprecate Tree and recommend TreeView ?

We do not plan add new features into Tree. And yes, we recommend to use TreeView if it correspond your requirements.