Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






jqGrid DataBind resets the PagerSettings.PageSize to 10

UserPost

00:17
07/07/2012


nporter

New Member

posts 1

I am working with MVC4 and the latest version of jqGrid. I see that when I step into the DataRequested method that right before calling the DataBind method on my gridModel.Grid the PagerSettings.PageSize is set to 100, then immediately following the DataBind method that value is now 10. I tried both DataBind methods with the same result. 


Ideally what I would like to do is preserve the PageSize and set the CurrentPage to whatever page I want displayed but the CurrentPage is always 1. Is there another way to set the PageSize (and/or CurrentPage) so that it's not blown away from the dataBind method? It seems that jqGrid is properly recognizing the expected page size when I select a different option in the page size drop down although I don't have code to handle that in my controller. Is this a known bug or another way to set these values? Thanks in advance.

13:43
10/07/2012


tony

Sofia, Bulgaria

Moderator

posts 6999

Hello,

If you use jqGrid for MVC server side component described here:

http://www.trirand.net/demoasp…..etmvc.aspx ,

Please post yor question here:

http://www.trirand.net/forum/


Regards

Tony


About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

157


Currently Online:

97 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 9578

Posts: 28748

Membership:

There are 10066 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1157

markw65 – 179

kobruleht – 144

phicarre – 126

YamilBracho – 124

Renso – 118

Administrators: admin (56 Posts)

Moderators: tony (6999 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information