jQuery UI Widgets › Forums › TreeGrid › First click on row make the browser scroll bar jump down a little
Tagged: javascript treegrid, jquery treegrid, jqwidgets treegrid, row click scroll bar, screen jumps, treegrid
This topic contains 6 replies, has 3 voices, and was last updated by ttjordan 6 years, 6 months ago.
-
Author
-
September 18, 2017 at 1:24 pm First click on row make the browser scroll bar jump down a little #96097
Many rows will make a default browser scroll bar at the right, this is normal.
But the first click on the row after data loaded will make the scroll bar jump down a little, I want to know how to prevent this.September 19, 2017 at 9:43 am First click on row make the browser scroll bar jump down a little #96131Hello Lloydz,
I tested the example below and it seems to work fine:
https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtreegrid/javascript-tree-grid-binding-to-xml.htm?light
Could you provide us an example that demonstrates this issue?Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comSeptember 20, 2017 at 8:42 am First click on row make the browser scroll bar jump down a little #96157Thanks for your reply, I have the same question with Garis, see below link
https://www.jqwidgets.com/community/topic/treegrid-jumps-on-first-click-in-chrome-and-ie/September 20, 2017 at 8:52 am First click on row make the browser scroll bar jump down a little #96158Another case similar to mine:
https://www.jqwidgets.com/community/topic/how-to-select-the-jqxtreegrid-api-to-select-row-or-cell/Case creator mentioned “used the multiselection mode to custom”, do you know anything about this?
September 20, 2017 at 9:00 am First click on row make the browser scroll bar jump down a little #96159I tried to set selectionMode to ‘custom’, and it worked.
September 25, 2017 at 10:22 am First click on row make the browser scroll bar jump down a little #96278Hello Lloydz,
We know about this scenario – it was described in one of the topics and the relation to Focusing.
Let me know if you need anything else.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com@lloydz, thanks for the solution. Adding property selectionMode to ‘custom’, woked.
We have 2 grids on the page and both have a lot of data/rows, this behavior was gettings annoying. However, the after playing around, I can see it being useful to have the screen auto jump to center the table if it’s slightly off. I think a more obvious behavior would work, like a smooth scroll animation. This way its obvious to the user what the behavior is doing.
-
AuthorPosts
You must be logged in to reply to this topic.