setNumberFormat and setDateFormat missing

I am trying to use setNumberFormat and setDateFormat and I am getting an undefined function error. I am using Standard 2.6 version. As a simple check in my own code I modified the sample
dhtmlxGrid/dhtmlxGrid/samples/01_cell_types/01_calendar_grid.html and added the line

mygrid.setDateFormat("%m/%d/%Y");

just before mygrid.init();

When I run the sample in Safari 503 I get
TypeError: Result of expression ‘mygrid.setDateFormat’ [undefined] is not a function.

Thanks for any help,

Dave.

Both methods are part of pro edition

docs.dhtmlx.com/doku.php?id=dhtm … erformat&s[]=setnumberformat

Thanks for the quick reply. I should have checked the API reference first. Maybe the run time for the standard edition could print “Upgrade to the Professional Edition for this functionality”?

Dave.

Yep, this is a good idea.
Most probably we will add something similar for next version.

I’m confused and my problem seems similar, I’m using XML and a loadXML call. In my XML I have:

<column align="left" sort="date" type="dhxCalendar" format="%Y-%m-%d" width="100">Target Date</column>

The page refuses the load and the JavaScript error console says: “Uncaught TypeError: Object # has no method ‘setDateFormat’”.

This thread seems to say that setDateFormat in a grid is only available in the pro edition? docs.dhtmlx.com/doku.php?id=dhtm … dateformat doesn’t say “Pro Edition Only”.

setDateFormat() is available in PRO version only. Please check docs.dhtmlx.com/doku.php?id=dhtm … dateformat

Please, I got the PRO version, but I have the same problem

Be sure that you are using correct js file.
There is no any special steps to use the above API, if pro version of dhtmlxgrid.js is used - API must be available.