Forum
09:27
01/09/2009
Hi,
Using Jqgrid 3.6.2 and FF3.5 or IE7 and below there is an issue with paging numbers when the initial sortorder=desc
FF - initially displays a negative value when first scroll takes place e.g "-99 - 100 of 4000" instead of "1 - 200 of 4000"
IE7 - Displays javascript error and the loading sign does not disappear.
You can try this with your demo and having SORTORDER = DESC
HTML
<table id="scrolling"></table>
<div id="pscrolling"></div>
Java Scrpt code
jQuery("#scrolling").jqGrid({
scroll: 1,
url:'bigset.php',
datatype: "json",
height: 255,
width: 600,
colNames:['Index','Name', 'Code'],
colModel:[
{name:'item_id',index:'item_id', width:65},
{name:'item',index:'item', width:150},
{name:'item_cd',index:'item_cd', width:100}
],
rowNum:100,
mtype: "GET",
rownumbers: true,
rownumWidth: 40,
gridview: true,
pager: '#pscrolling',
sortname: 'item_id',
viewrecords: true,
sortorder: "desc", //NOTE DESC AS INITIAL SORT ORDER
caption: "Loading data while scrolling"
});
10:45
Moderators
30/10/2007
Hello,
Thanks. In order to test with your setting I have dowloaded the version and put it into the demo, but for me there is no problems. Moreover I have changed the sortorder in demo site (you can see this live in demo page), but again no problems.
Also please check again your server response - I think that this is the problem
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
04:12
01/09/2009
Thanks Tony,
I solved this problem for me.
line 277 of grid.base.js file should be page = Math.round((tbot + scrollTop) / div) + 1; instead of page = parseInt((tbot + scrollTop) / div) + 1;
I got the answer from markw65 & retro
http://www.trirand.com/blog/?p.....scrolling/
Cheers
Matt
16:57
Moderators
30/10/2007
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
41 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