Forum



13:01

28/02/2011

Hello,
I found a useful post on the topic,
/blog/?page_id=393/help/simulate-scroll-event-reload-next-page-virtualization/&value=scroll&type=1&include=3&search=1
but it seems not to apply to my scenario.
My configuration:
$jqgrid_container.jqGrid({
url:'jqgrid',
datatype: 'xml',
colNames:[...],
colModel:[...],
rowNum:100,
rowTotal: $jqgrid_container.data('total-entries'),
rowList:[100,500,1000],
pager: '#jqgrid-pager',
loadui:'block',
gridview:true,
viewrecords: true,
scroll:1,
scrollrows : true,
sortname: $jqgrid_container.data('sortname'),
caption: $jqgrid_container.data('caption'),
onSelectRow: function(id){GridEditing.row(id)},
shrinkToFit:false
})
Everyrthing works fine when I do normal scrolling with mouse, but I can't get it working when I want to go to a specific page.
The solution $("#mygrid").jqGrid('setGridParam', {page:4}).trigger('reloadGrid') only works when the config option "scroll" is false.
When scroll is 1 or true, the pager tells the correct position (records 301-400 of 933), the rows actually are in the DOM, but there no rows are shown in the grid, and I can't get them in the correct position.
In the end I tried to do also $("#mygrid").jqGrid('setSelection',true), but it doesn't work.
I will appreciate any help,
Thanks,
Luca
22:42

08/06/2009

I experienced the same problem. Here is my attempt at a fix...
In the updatepager function after the line with:
$(">div:first",ts.grid.bDiv).css({paddingTop: top, height : height - top});
I added:
if (ts.grid.bDiv.scrollTop == 0 && ts.p.page > 1) {
ts.grid.bDiv.scrollTop = ts.p.rowNum * (ts.p.page - 1) * rh;
}
07:19

27/07/2011

I'm having the same problem, when the option 'scroll' is 'true' or '1' and the page is changed via script ($('#gridID').setGridParam({page: 10}).trigger('reloadGrid');), the pager displays the right info (for example: View 1 101 – 1 150 of 2 000), but, the scroll bar doesn't change position and the grid displays nothing. It appears to be a jqGrid bug, Am I right?
17:55

14/06/2009

Hi,
Can anyone help with this issue?
I have the same problem with dynamic scrolling that when I programmatically load a specific page the grid does not scroll to it.
If I try to scroll to the position of the records in the page using:
grid.closest(".ui-jqgrid-bdiv").scrollTop(2400);
The scroll button moves a bit and fires loading of the page the scroll button is currently on.
Any help will be greatly appreciated.
Thanks
Most Users Ever Online: 715
Currently Online:
50 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66