jQuery UI Widgets › Forums › Grid › Grid Copy Paste Screen/Viewport Jump
Tagged: angular grid, bootstrap grid, Cell, copy, javascript grid, jquery grid, jqwidgets grid, jqxgrid, paste, viewport jump
This topic contains 5 replies, has 2 voices, and was last updated by mohamedazher 8 years, 11 months ago.
-
Author
-
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 AzherHi,
Is there any workaround for this issue? May be some way to manually focus the grid or something?
Regards,
Mohamed AzherHello Mohamed Azher,
Thank you for using our product.
When the Grid have this settingautoheight: true,
and describe behavior above is natural.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHi,
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 Azheri 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.
Also to point out, your JqxGrid Default Functionality – First demo, has that issue.
Copy pasting once cells contents to another jumps the whole screen or scrolls it up.
Regards,
Mohamed Azher -
AuthorPosts
You must be logged in to reply to this topic.