Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Gayathri on Dec 13, 2007 06:41
open dhtmlx forum
Calendar- Not displayed

Hi

i have configured a column as calendar in XML as <column width="150" type="calendar" align="left" color="white" sort="str">To date</column>

And the cell value is : <cell>14/12/2007</cell>

While the XML is rendered and i click on the cell , it throws an error.

Error is::

"document.write(" ");document.write(" ");document.write(" ");document.write(" ");document.write("");function eXcell_calendar(cell){try{this.cell = cell;this.grid = this.cell.parentNode.grid;}catch(er){};this.edit = function(){if (!window._grid_calendar)_grid_calendar_init();var arPos = this.grid.getPosition(this.cell);var pval=this._date2str2(this.cell.val||new Date());window._grid_calendar.render(arPos[0],arPos[1]+this.cell.offsetHeight,this,pval);var zFunc=function(e){(e||event).cancelBubble=true;};dhtmlxEvent(window._grid_calendar.table.parentNode.parentNode,"click",zFunc);this.cell._cediton=true;this.val=this.cell.val;};this.getValue = function(){if (this.cell.val)return this._date2str2(this.cell.val);return this.cell.innerHTML.toString()._dhx_trim()"

 

object expected!! (marked as bold)

These are the files i have included in my page(Yahoo API used for some other purpose)

        <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlXCommon.js"></script>
        <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlXGrid.js"></script>
        <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlXGridCell.js"></script>

        <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlXCommon.js"></script>
        <script src="../dhtmlxtreegrid/js/dhtmlXDataProcessor.js"></script>
        <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlXProtobar.js"></script>
        <script src="../dhtmlxtreegrid/js/dhtmlXToolbar.js"></script>
        <script type="text/javascript" src="../yui/yahoo/yahoo.js"></script>
        <script type="text/javascript" src="../yui/event/event.js" ></script>
        <script type="text/javascript" src="../yui/dom/dom.js" ></script>
        <script type="text/javascript" src="../yui/calendar/calendar.js"></script>
        <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlxCalendar.js"></script>
        <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlxgrid_excell_dhxcalendar.js"></script>
        <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlXGrid_excell_calck.js"></script>
        <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlXGrid_excell_acheck.js"></script>
        <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlXGrid_excell_calendar.js"></script>
        <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlXGrid_excell_clist.js"></script>
        <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlXGrid_excell_link.js"></script>
        <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlXGrid_splt.js"></script>

Also the on the screen the date is displayed wrongly as 02/12/2008.

it'll be really helpful if you can throw some light on this. Thank you.

 

Answer posted by Support on Dec 13, 2007 09:40
Which calendar excell you plan to use ?
If you are using "dhxCalendar" you need not
    <script type="text/javascript" src="../dhtmlxtreegrid/js/dhtmlXGrid_excell_calendar.js">

If you are using "calendar" you need to set paths to other calendar related files
	<script>
_css_prefix="../../codebase/";
_js_prefix="../../codebase/";
</script>

Please reffer to related sample