Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Oct 11, 2007 21:47
open dhtmlx forum
drag and drop

hi,
I am using dhtmlxgird.js,
I have 2 grids, if I drag item from first grid and place in the empty place in second grid, it gets placed as the top of second grid.
Can I place that item at the end of grid?How?
Really appreciate your help in this.

Thanks in advance.
Answer posted on Oct 12, 2007 16:20
This behaviour not controlled by API, but can be updated in JS code

In dhtmlxgrid_drag.js , line 249

dragContext.prototype.ind=function(){
    if (this.tid==window.unknown) return 0;

can be changed to

dragContext.prototype.ind=function(){
    if (this.tid==window.unknown) return this.tobj.getRowsNum();