jQuery UI Widgets Forums Grid Grid Copy Paste Screen/Viewport Jump

This topic contains 5 replies, has 2 voices, and was last updated by  mohamedazher 8 years, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Grid Copy Paste Screen/Viewport Jump #79204

    mohamedazher
    Participant

    Hi,

    There seems to be a problem when you copy and paste one cell’s value to another when you have autoheight set to true. The entire page jumps and comes back, also the grid scrolls to the top.

    You can try the same in this fiddle. http://jsfiddle.net/mohamedazher/f78zan1d

    1) Try to copy paste 1 cell’s value to another, the entire fiddle screen jumps
    2) Scroll to somewhere in the middle and try pasting, the screen jumps and the grid scrolls to the top.

    This happens only when you copy and paste 1 cell’s value to another. Its a bit weird as the entire screen jumps each time you paste something, worse when the grid is somewhere in the bottom of the page.

    Regards,
    Mohamed Azher

    Grid Copy Paste Screen/Viewport Jump #79231

    mohamedazher
    Participant

    Hi,

    Is there any workaround for this issue? May be some way to manually focus the grid or something?

    Regards,
    Mohamed Azher

    Grid Copy Paste Screen/Viewport Jump #79271

    Hristo
    Participant

    Hello Mohamed Azher,

    Thank you for using our product.
    When the Grid have this setting autoheight: true, and describe behavior above is natural.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Grid Copy Paste Screen/Viewport Jump #79409

    mohamedazher
    Participant

    Hi,

    Thanks for the reply.

    However, i am not sure if this screen jumping can be called as a natural behaviour. i.e. entire screen jumping with the grid scrolling to top each time you paste something. I would say its more like a bug/unexpected behaviour.

    There are cases where you wouldn’t want autoheight to be true, especially when you are building an editable grid. Imagine Excel jumping to the top of the page every time you paste something.

    Hoping if this can be resolved or at least fixed in the future updates.

    Thanks and Regards,
    Mohamed Azher

    Grid Copy Paste Screen/Viewport Jump #79410

    mohamedazher
    Participant

    i mean there would be cases where you would want autoheight to be true. Like in the case of an order entry screen where you use the grid for data input. You wouldnt want to fix the height or enable pagination in such a use case.

    Grid Copy Paste Screen/Viewport Jump #79411

    mohamedazher
    Participant

    Also to point out, your JqxGrid Default Functionality – First demo, has that issue.

    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm#demos/jqxgrid/defaultfunctionality.htm

    Copy pasting once cells contents to another jumps the whole screen or scrolls it up.

    Regards,
    Mohamed Azher

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

You must be logged in to reply to this topic.