jQuery UI Widgets › Forums › Grid › Scrolling in pageable Grid
Tagged: ensurerowvisible, grid, pageable, scroll
This topic contains 5 replies, has 3 voices, and was last updated by juanslingerASAP 8 years, 11 months ago.
-
Author
-
Hi,
in my grid has fix height but needs autorowheight so i turned on pageable – my problem is now that scrolling is not working
and when I execute ensurerowvisible it returns false! – and the row is not visibleThe Grid:
$("#gridid").jqxGrid({ width : "100%", height : 800, source : data_adapter, columnsresize : true, showemptyrow: false, theme : "metro", pageable: true, pagerheight: 0, autorowheight: true, columns : columns });
Scrolling:
grid_jquery_object.jqxGrid("selectrow", newIndex); grid_jquery_object.jqxGrid("ensurerowvisible", newIndex);
Hi matzep94,
pagerheight should not be set to 0 when you have enabled Paging.In addition, the provided information is not sufficient for testing your scenario.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/The problem is that I have that I need a Grid which rows hava various linecounts for example one have one line a another has 3 lines
This grid should have a fix height and i want to scroll through the selection with buttonshow can I make this then without set paging to true??
Hi matzep94,
“autorowheight” is supported only in Pageable mode or when “autoheight” is set to true which means that the only option for your scenario is to have a Pageable Grid, but that means also that you will have a Pager that will allow your users to change the page number.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Now the Grid Looks so :
$("#"+this.GRID_DIV_SHIFTINFO_ID).jqxGrid({ width : "100%", height : 800, source : data_adapter, columnsresize : true, showemptyrow: false, theme : "metro", pageable: true, autorowheight: true, columns : columns });
but ensurerowvisible still not works
Hello,
I’m having a strange scenario. First I initialize the grid and after I get all data for the grid. I’m using pageable, but when I change page size from one page size to a bigger one, new “page render” just scroll to rows for before’s page size.
Example, if I change from page size 50 to 100, I start scrolling and data freezes on row 50.
Also just in case it helps, I’m setting height to the grid.
-
AuthorPosts
You must be logged in to reply to this topic.