Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: JQuery GRID JSON data

$
0
0

Did you look at the example in the jqGrid Demos page? The answer is there.

Open http://trirand.com/blog/jqgrid/jqgrid.html

Open Chrome Developer Tools

See what is the URL when you click the next page button on the grid?

 

http://trirand.com/blog/jqgrid/server.php?q=1&_search=false&nd=1374957 231342&rows=10&page=2&sidx=id&sord=desc

 

If you click the previous page:

 

http://trirand.com/blog/jqgrid/server.php?q=1&_search=false&nd=1374957 248411&rows=10&page=1&sidx=id&sord=desc

 

As you can see the page value in the query string change from 2 to 1.

 

Then, see the PHP code. The page variable is use to retrieve data.

 

That means if you give a number of rows, the grid does not calculate page number automatically. You should do the calculation from the CFC.


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>