Forum
15:30
25/02/2010
Hi!
I've got a great problem:
I'm using jqgrid with the scroll=1 option, to load json data from a database by scrolling the grid (url-parameter is set).
"RowNum" is set to 50 and "height" is 700.
If i scroll the grid to bottom and back to top, this works perfectly without problems.
Now I change the gridheight to 550 because I display a hidden div with searchfields.
By sending the searchquery, the database generates a new response and the function trigger("reloadGrid",[{page:1}]) is called to display the results of the search.
By clearing the searchfields, the div is set backto display "none", the gridheight is set back to 700 and again the realoadGrid-trigger is called to display the unfiltered grid-data.
After this change of gridheight jqgrid sends multiple requests like:
server.query.php?session=19c9542ef9464fa4f5fad80f8513dcce&_search=false&nd=1268227202767&rows=50&page=2&sidx=&sord=asc
server.query.php?session=19c9542ef9464fa4f5fad80f8513dcce&_search=false&nd=1268227203532&rows=50&page=2&sidx=&sord=asc
etc., all with the same results and appending it to the grid.
So after all I've got a grid with hundreds of results that are duplicates of the original data and the result counter in the footer / pager gets negative.
If the grid-height isn't changed to 550 and back, the grid works correctly without sending multiple requests to server.
Hope you've got an answer or fix this bug soon.
Best regards,
Patrick
15:10
Moderators
30/10/2007
Hello,
How do yo set the height of the Grid?
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.
01:25
25/02/2010
Hi Tony,
I'm using the setGridHeight-function like "jQuery("#grid″).setGridHeight(550);"
I looked into the jqgrid.js file and found this call: "$t.grid.populateVisible()" at the end of the setGridHeight function.
Maybe the populateVisible() function is buggy after resizing; so after that the grid can't render / round / count correct amount of rows.
20:05
Moderators
30/10/2007
Hello,
Thanks. I will look at this, but populateVisible triggers the grid, so in this case maybe you should not trigger it again.
Could you please post your code sniplet to look at what is happen?
Thanks
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.
Most Users Ever Online: 715
Currently Online:
55 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