Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on May 05, 2008 22:41
open dhtmlx forum
grid onchange event

dear support,

am used a dhtmlx grid with 2 columns. first column is holiday name and second one is a dhtmlx calendar.

am showing the grid with editing mode is no problem. when i register the new entry the following criteria will achived.

1)by default one row will show.
2)on enter the text in the first column in first row then the second row will added.
3)when i click the calendar cell the calendar opened bottom from the cell.because of the page will expanded and vertical scroll bar shown in the whole page.
4) how can stop expand page. Is the way to open the calendar top from the cell or someway? please help.

thanks ,

karthik
Answer posted by Support on May 07, 2008 03:23
>>4) how can stop expand page. Is the way to open the calendar top from the cell or someway? please help.
By default calendar show right-bottom to the edited cell, the behavior can be changed by small code adjustment

    dhtmlxgrid_excell_calendar.js, line 22
        window._grid_calendar.render(arPos[0],arPos[1]+this.cell.offsetHeight,this,pval);
   
first and second parameters are X and Y coordinates, you can change them in any necessary way.
The next modification, will cause calendar to appear to the top of edited cell.
    window._grid_calendar.render(arPos[0],arPos[1]-180,this,pval);