Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Cliff on May 29, 2008 23:52
open dhtmlx forum
dhxCalendarA and Sort

Hi
I have a dhxCalendarA column and setting the sort type is date. however when i click on the column to sort it i get a script error saying

A Runtime error has occurred
do you wish to debug?
line 1454
Error: The object or property does not support this property or method.


Using the following includes:
<link rel="stylesheet" type="text/css" href="/dhtmlx/dhtmlxCalendar/codebase/dhtmlxcalendar.css">
<script type="text/javascript" src="/dhtmlx/dhtmlxCalendar/codebase/dhtmlxcalendar.js"></script>    
<script type="text/javascript" src="/dhtmlx/dhtmlxGrid/codebase/excells/dhtmlxgrid_excell_dhxcalendar.js"></script>

the dhtmlxgrid_excell_dhxcalendar.js was downloaded from :
http://www.dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=2365&ssr=yes&s=dhxCalendarA
Thanks again
Cliff
Answer posted by Support on May 30, 2008 02:33
The issue can't be reconstructed locally - please check attached sample, it uses the same approach and works correctly.

If problem still occurs for you - please send any kind of sample where issue can be reconstructed. ( you can send it directly to support@dhtmlx.com )
Answer posted by Support on May 30, 2008 02:34

Attachments (1)
Answer posted on Jun 01, 2008 22:15

My fault i had changed one of the cells to ro which caused the error:

Column was defined as dhxCalendarA
had set to  <cell type='ro'> in the same column.

remove the cell type resolved the issue.

Answer posted by Support on Jun 02, 2008 08:10
Yes, such situation can cause error.
If you need to use "ro" cells in the same column with dhxCalendar - you can add next line before grid initialization

eXcell_ro.prototype.getDate=function(){return this.getValue();}