Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Daniel Moussa on Aug 31, 2008 15:54
open dhtmlx forum
Why custome images path needs to be relative to the dhtmlx imgs path?

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,
Answer posted by Support on Sep 01, 2008 01:43
>> 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.