Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
True Scroll and sortorder Desc
20/01/2010
09:27
Avatar
mattdykstra
Member
Members
Forum Posts: 3
Member Since:
01/09/2009
sp_UserOfflineSmall Offline

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"
});
Cheers
Matt
22/01/2010
10:45
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

27/01/2010
04:12
Avatar
mattdykstra
Member
Members
Forum Posts: 3
Member Since:
01/09/2009
sp_UserOfflineSmall Offline

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

28/01/2010
16:57
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

I fixed this in GitHub

http://github.com/tonytomov/jq.....327183a737

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
37 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information