jQuery UI Widgets › Forums › TreeGrid › TreeGrid jumps on first click in Chrome and IE
Tagged: javascript tree grid, jquery tree grid, treegrid
This topic contains 4 replies, has 3 voices, and was last updated by Lloydz 8 years, 6 months ago.
-
Author
-
When the treegrid is on a large page, clicking anywhere in the grid the first time, causes the page to jump so the top of the grid goes to the top of the page. This jump happens in Chrome and IE, but not in Firefox.
Here is a fiddle: http://jsfiddle.net/awkuvs1w/1/
The jqxgrid previously had the same bug, which you fixed a while back. See post here:
http://www.jqwidgets.com/community/topic/clicking-on-grid-causes-page-jump/Can you apply the same fix to the TreeGrid?
Thank you,
Jordan GarisHi Jordan Garis,
We did not fix anything in jqxGrid or jqxTreeGrid regarding things like that. When Focus is put in a widget, the browser may scroll to bring its top into view. This is normal web browser behavior which we cannot change.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Hi Peter,
I think you may be wrong about this, and this is a very real issue which affects the TreeGrid and DataTable. The Grid previously had the same issue but has been corrected.
The problem is you cannot edit any fields that first appear off the page. Take a look at the fiddle below using IE and try to edit Employee ID 85.
http://jsfiddle.net/awkuvs1w/6/The normal behavior you talk about in IE only affects input tags or javascript links. The TreeGrid and DataTable uses tables and divs. It is NOT normal behavior for those to cause a page to jump on focus. I think the problem is that you may have some click events in your javascript which use return true and need either return false instead or preventDefault.
Thank you,
Jordan GarisHi Jordan Garis,
Ok, thank you for your opinion. It is 100% normal behavior when you have Focusing.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/I have the same problem to resolve.
-
AuthorPosts
You must be logged in to reply to this topic.