jQWidgets Forums

jQuery UI Widgets Forums Grid window shifts to the left when exiting edit mode

This topic contains 5 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 12 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author

  • lleveille
    Participant

    This is in IE only; I am testing with IE 9.0.8112.16421
    I have two grids that have corresponding columns that line up.
    Because of the amount of columns the user is able to scroll the browser to the right to view some of the fields.
    The grid width is set to width: 1953
    The grid does not have a scroll because it fits within the div
    After scrolling to the right on the browser, when the user comes out of edit mode in any of the cells, the screen is shifted to bring the first column into the viewable area.
    Of course the cell they are in is no longer viewable and they have to scroll to the right again.
    I do not see this issue in Firefox or Chrome.


    lleveille
    Participant

    I thought may be what was causing it but I took it out and I still have the issue
    $(‘#jqxJobs’).jqxGrid(‘focus’);


    lleveille
    Participant

    in debug I see it is running this as part of jqxgrid.edit.js
    t.content.focus()
    if(u!=t.getScrollTop()){window.scrollTo(w,u)}},10)


    Peter Stoev
    Keymaster

    Hi lleveille,

    Yes. That is how it is designed to work. If the Position is changed due to the Focus, the Position would be resetted. Nothing wrong with that.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/


    lleveille
    Participant

    Peter

    Thank you for your response!
    I am afraid that I was clear because this is not an acceptable user experience.
    http://jsfiddle.net/lleveille/3f3bf/
    In the results window scroll over to the Price column and click on a cell
    Hit the Enter Key to begin edit and then hit Enter Key to end edit.
    The grid changes the focus to the first column of the grid (maybe actually to the top left corner of the grid).
    This in turn pushed the cell you are editing out of view!
    Interesting enough if the up and down scroll is active on the browser it does not exhibit this behavior but it does flicker the screen as if it is moving away and coming back. (also not an acceptable user experience)

    Again this only happened when using IE, Firefox and Chrome do not exhibit this behavior.


    Peter Stoev
    Keymaster

    Hi lleveille,

    I am sorry that you do not find it to be acceptable. We are unable to offer a different behavior at present. When the Grid gets the Focus, some browsers automatically bring the focused HTML Element into view.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.