How to add checkbox in a grid

Hello one and all, I have two problems this morning on my gate.

1 - images that allow sorting on the grid does not appear, however, the path is well informed
and images exist in the directory. when i load my grid, i have this 2 error informations:

“NetworkError: 404 Not Found - localhost/Ordre%20de%20Mission/v … t_desc.gif

“NetworkError: 404 Not Found - localhost/Ordre%20de%20Mission/v … rt_asc.gif

2- I want to show checkbox in my grid, when the cell value is 1
I proceeded as follows:
putting ch on setColTypes method

rid = new dhtmlXGridObject('gridbox');
				grid.setImagePath("vue/dhtmlxGrid/codebase/imgs/");
				grid.setHeader("nom,iscurrent,islocked,debut,fin");
				grid.attachHeader("#text_filter,,,,");
				grid.setInitWidths("200%,200%,200%,200%,200%");
				grid.setColTypes("ed,ch,ch,ed,ed");
				grid.setColAlign("center,center,center,center,center");
				grid.setColSorting("connector");
				grid.setSkin("dhx_skyblue");			
				grid.init();			

and until now the checkboxes do not appear, I rather the following errors:

“NetworkError: 404 Not Found - localhost/Ordre%20de%20Mission/v … m_chk0.gif

item_chk0.gif

“NetworkError: 404 Not Found - localhost/Ordre%20de%20Mission/v … m_chk1.gif

I need help from you.

the path is well informed and images exist in the directory
If server returns error 4040 in your case, that is mean - imagepath is pointing to the wrong location.

This one is path relative to the page

grid.setImagePath(“vue/dhtmlxGrid/codebase/imgs/”);

Be sure that it points to valid imgs folder, and folder contain all images from dhtmlxGrid’s package.

in the directory

localhost/Ordre% 20of% 20Mission/vue/dhtmlxGrid/codebase/imgs /

there are sort_asc.gif , sort_desc.gif, item_chk1.gif and etitem_chk0.gif.

I do not understand why the images do not appear and checkboxes

i have the error:

“NetworkError: 404 Not Found - localhost/Ordre%20de%20Mission/v … m_chk0.gif

item_chk0.gif

“NetworkError: 404 Not Found - localhost/Ordre%20de%20Mission/v … m_chk1.gif

item_chk1.gif

“NetworkError: 404 Not Found - localhost/Ordre%20de%20Mission/v … rt_asc.gif

If issue still occurs - please zip whole folder and send it by email to support@dhtmlx.com

Please check the attached sample
sample_checks.zip (123 KB)

thank you Stanislav !!!

I just sent you the directory to the support@dhtmlx.com address .

so far I still have errors on my grid :

"NetworkError: 404 Not Found - http://localhost/Mission/vue/dhtmlxGrid/codebase/imgs/sort_desc.gif"

sort_desc.gif

"NetworkError: 404 Not Found - http://localhost/Mission/vue/dhtmlxGrid/codebase/imgs/item_chk1.gif"

item_chk1.gif

"NetworkError: 404 Not Found - http://localhost/Mission/vue/dhtmlxGrid/codebase/imgs/item_chk0.gif"