I have JQGrid in my application. If i wanted to capture the user input from Pagination's page number text box, what i have to do? And also i wanted to do it before grid changes it's page.
Is there any way to do it? Please, somebody help me to implement this.
You can use onPaging callback If is's needed you can event stop changing of the page. In case of direct user input the parameter of callback will be the string
"user"
. To get the current value you can use eitherpage
parameter or get or set the value directly from the input controlUPDATED: Free jqGrid don't have the described above problem. See the wiki article which describes additional
options
parameter ofonPaging
callback, which hasnewPage
,currentPage
and some other properties.I was facing same problem. I need to pass page number manually. I found this code from another post I dont remeber :p.
Hope it will be help full