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
scroll=1 + changing gridheight + trigger("reloadGrid") = multiple append to grid of same results
10/03/2010
15:30
Avatar
SinErgy
Germany
Member
Members
Forum Posts: 3
Member Since:
25/02/2010
sp_UserOfflineSmall Offline

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

11/03/2010
15:10
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

12/03/2010
01:25
Avatar
SinErgy
Germany
Member
Members
Forum Posts: 3
Member Since:
25/02/2010
sp_UserOfflineSmall Offline

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.

13/03/2010
20:05
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

Forum Timezone: Europe/Sofia

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.com

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information