Forum


20:16

29/04/2010

I've just implented jqgrid on my cold fusion site. Everything works fine. I'm loading the data locally from an array.
However, I'm unclear how to paginate this. I can turn on the page -- and I see the pager -- but it says page 1 of 0 -- and won't allow me to scroll.
How can I populate a local array with, say, 100 bits of data but only show 10 at once. Does JQgrid automatically segment this into units of 10? Or is this something I need to do manually?
Very confused.
Bobbytuck
20:32

08/03/2010

There is really no code in jqGrid that manages a larger in-browser dataset, while displaying a subset in the grid. You have to write that code yourself. You override 'datatype' grid property with a function that does the fetching of the data subsets.
A very convoluted example of working against "Local storage" is here:
Most Users Ever Online: 715
Currently Online:
84 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