Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by richard white on Feb 17, 2009 06:25
open dhtmlx forum
drop down position in grid

Hi

we have a grid in a layout cell and have noticed that if the user double clicks on a grid cell which is a drop down, and the cell is at the bottom of the grid, the position of the drop down is off the screen so we cannot see all its contents. this occurs with clist and combo

is there a way to fix this please

thanks
Answer posted by Support on Feb 18, 2009 06:28
Unfortunately there is no fix for the issue. The position of external element always to bottom of active cell, there is no easy way to enable auto-positioning. 
Answer posted on Feb 18, 2009 10:33
hi

thanks for your reply. just to clarify: are you saying that on all grids, if a column is set to coro and the user enters the edit mode on the last cell, the drop down will always go off the grid so the user cannot see it, and there is no fix for this. do i have this correct?

couldnt you code it so that if the user enters the edit mode of a cell, the drop down box doesnt dissapear off the end of the grid?

thanks
Answer posted by Support on Feb 19, 2009 02:51
>>the drop down will always go off the grid so the user cannot see it
Dropdown will always will be show to the bottom of cell 
dhtmlxgridcell.js 
function eXcell_co(cell){
...
    this.edit=function(){
...
   this.list.style.top=arPos[1]+this.cell.offsetHeight+"px"; 

while it pretty complicated to auto-detect position, but you can change above line to calculate position in any other way