Roy

Forum Replies Created

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • in reply to: Grid scrolls to top after selecting a cell #101180
    Roy
    Participant

    Hello,

    Above solutions don't work for me.

    The problem is occured only at the HTML5 Document.

    So, I created a hack. (If editCell function have event parameter then the solution will be clearer than below hack.)

    Paste below code at two position in the grid.celledit.js.

    code:

    if (window.event) {

    $(“#”+$.jgrid.jqID($t.p.knv)).offset({top:$('body').scrollTop(), left:window.event.pageX});

    } else {

    $(“#”+$.jgrid.jqID($t.p.knv)).offset({top:$('body').scrollTop()});

    }

    grid.celledit.js position:

    – Line 40 : above of $t.p.selrow = $t.rows[iRow].id;

    – Line 411 : above of $(“#”+$t.p.knv)

Viewing 1 replies (of 1 total)

Stay connected with us in your favorite flavor!