Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Pavan on Nov 02, 2008 23:37
open dhtmlx forum
GRID date format

I am using a Grid which displays data from mysql database. I have a date column with format "YYYY-MM-DD" when i try to edit the date using dhxCalendarA it points to date of 1970 how to get dhxCalendarA point to current date.

I want to position the calendar below the cell. How to change the position of dhxCalendarA
Answer posted by Support on Nov 03, 2008 03:05
a) you need to specify used date format
             mygrid.setDateFormat("%Y-%m-%d");
b) can be done only by code modification
dhtmlxgrid_excell_dhxcalendar.js
           this.grid._grid_calendarA.setPosition(this.cell);
replaced with 
           this.grid._grid_calendarA.setPosition(this.cell,this.cell.offsetHeight,this.cell.offsetWidth*-1);