Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sandaly KEITA on Nov 26, 2008 12:49
open dhtmlx forum
Calendar don't close

Hi,

I'm using dhtmlxgrid (version 70223) with patch rotxt_patch.j

I have a problem only with Firefox.

When I double click on a calendar cell, I open a calendar and I can select a date. I click to choses a date, the calendar is closing and in my cell I have my new date.

But I double (double click) too fastly on a calendar cell, I open a calendar but when I select a date there's nothing. The calendar and the grid is blocked and I have the following error:

this.cell is null
[Break on this error] this.cell.className=this.cell.className.replace("editable","");


I know it's not usual but you know user

THANKS FOR YOUR HELP


CODE

mygrid.setInitWidths("130,100,60,45,0,60,45,0,110,90")
mygrid.setColAlign("left,center,center,right,left,left,right,left,left,center")
mygrid.setColTypes("co,edtxt,calendar,edtxt,rotxt,edtxt,edtxt,rotxt,edtxt,edtxt");
mygrid.setColSorting("str,str,str,str,str,str,str,str,str,str")
mygrid.setDateFormat("y-m-d");
    mygrid.setOnRowSelectHandler(OnClickedRow,true);
    mygrid.setOnEditCellHandler(OnEditCellHandler);
mygrid.setOnRightClick(OnRightClick)             
mygrid.enableAutoHeigth(true);
    mygrid.enableMultiline(true);
    mygrid.init();
mygrid.enableAlterCss("even","uneven");
Answer posted by Support on Nov 27, 2008 01:46
The issue alredy fixed in latest codebase. 
Please try to use attached patch with your version of dhtmlxgrid.
Attachments (1)
Answer posted by Sandaly KEita on Nov 27, 2008 05:46
Hi,

I'm using the patch like this

<script type="text/javascript" src="js/dhtmlxgrid/dhtmlXCommon.js"></script>
    <script type="text/javascript" src="js/dhtmlxgrid/dhtmlXGrid.js"></script>
    <script type="text/javascript" src="js/dhtmlxgrid/dhtmlXGridCell.js"></script>
    <script type="text/javascript" src="js/input_validator.js"></script>
    <script type="text/javascript" src="js/dhtmlxgrid/rotxt_patch.js"></script>
    <script type="text/javascript" src="js/dhtmlxgrid/dhtmlxgrid_edit_patch.js"></script>
    <script type="text/javascript" src="js/dhtmlxgrid/dhtmlXGrid_excell_calendar.js"></script>
    <script type="text/javascript" src="js/dhtmlxgrid/dhtmlXGrid_excell_calck.js"></script>
    <script type="text/javascript" src="js/dhtmlxgrid/dhtmlXGrid_excell_acheck.js"></script>
    <script type="text/javascript" src="js/dhtmlxgrid/dhtmlXGrid_excell_clist.js"></script>


But I have the same problem
Answer posted by Support on Nov 27, 2008 07:07
Please send dhtmlxgrid.js which you are using to support@dhtmlx.com ( with reference to this post ) - we will reply with fixed version. 
Answer posted by Sandaly on Nov 28, 2008 08:25
here my dhtmlxgrid.js file

Thanks
Answer posted by Support on Nov 28, 2008 09:03
Updated js file sent by email.
Answer posted by sandaly on Dec 02, 2008 10:19
Thanks, It's work very well!