Why custome images path needs to be relative to the dhtmlx i

Hi Team,

You know when you create a grid or a tree you need also to set the imgs path and it is normally relative to the dhtmlx installation path. When we create our images we want to put them in a separate folder and not mix them up with tree or grid native an dessential images. We can do that but we have to provide an image path relative to the tree or grid imag epath!



Let me explain in a simple example:

(1) Our deployment structure is similar to the following:

--honda

|______html

|images

|js

|dhtmlxTree

|
imgs

|
codebase

|
ext





when we create our tree we set the imgs path as:

gridObj.setImagePath("/honda/dhtmlxTree/imgs/");



(2) Say we want to show images from our “images” folder in teh tree, we still have to specify a relative path from the dhtmlxTree images folder, i.e

“…/images/blueBall.gif”



We prefer to use absolute path “honda/images/images/blueBall.gif”



Is there a fix around this?



Thanks,

We can do that but we have to provide an image path relative to the tree or grid imag epath!
Oncoming update will introduce separate command for such task , in current version of tree|grid there is only one command to set path to image folder - it is used for both default and custom images.

There is no fix for current version, but if you need it ASAP - you can contact us directly at support@dhtmlx.com and we will send you custom build with functionality changed in desired way.