Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stan on May 10, 2007 16:46
open dhtmlx forum
dhtmlxGrid - changing images path

I have a problem changing images path for dhtmlxGrid component through
mygrid.setImagePath("./img/"); call. The reason been that all the Styles files have hard coded references to the ../imgs directory. Here is a code from dhtmlXGrid.css file:

background-image:url('../imgs/header_bg.gif');

Is there a way to redefine dynamically the location of images or is it a bug?
Answer posted on May 11, 2007 10:57
The grid uses a lot of images ( sorting markers, treeGrid elements, images for radio, checkbox, dynamic excells ) - all those images use path set by
    mygrid.setImagePath
so in case of default skin ALL images used from established URL.

In case of additional skins situation is a bit more complex, because skin description stored in separated css files, it is impossible to apply that  setting directly to css.

The simplest solution will be in updating dhtmlxGrid.css with globar
paths to your image location
    background-image:url('http://some_site.com/some/imgs/header_bg.gif');
    or
    background-image:url('/some/imgs/header_bg.gif');

If it not acceptable for you, I can send you in few days an updated version of dhtmlxGrid, which will take skin images from same path as setImagePath set.
Answer posted by Embre (Support) on Dec 11, 2014 00:16

I hope this information will be enough for you. But you also can have a look at mobile web apps and php ajax toolkit.