Problem with column type dhxCalendar

I’m having problems with cell type ‘dhxCalendar’ to add a date picker to the grid.
I’m getting one of the classic errors (see image) - this is dhtmlxgrid 3.6 Pro.

It appears that I’m either missing a file to include or the order of included files is wrong or something - either way it will not work, as soon as I add the dhxCalendar cell type (was ‘ro’ before).

Any ideas?

[code]

mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setImagePath(“dhtmlxgrid/imgs/”);

mygrid.setColTypes(“ro,ed,ed,edn,edn,edn,edn,dhxCalendar,ro,ro”);


mygrid.init();
mygrid.parse(xml_string_containg_rows);
[/code]

You need to include “dhtmlxgrid_excell_dhxcalendar.js”
Also, please, note, that the exCell is based on the dhtmlxCalendar component so you also need to include the dhtmlxCalendar libraries.

Thanks, I had already tried with the calendar component files added but the error was the same.
The reason it didn’t work what that I was adding:

<script src="dhtmlxgrid/excells/dhtmlxgrid_excell_calendar.js"></script>

When I should be adding:

<script src="dhtmlxgrid/excells/dhtmlxgrid_excell_dhxcalendar.js"></script>

I didn’t notice that there were 2 files that has calendar in the name.

It also seems that you need to add:

<script src="dhtmlxgrid/ext/dhtmlxgrid_filter.js"></script> 

When you add files for the data picker column type.

It works now :slight_smile:

Glad that everything works fine now.
Could you clarify what is the data picker column type?