开发者

MVC jqgrid Page Navigation When Data is Sorted

I am running a code with ASP .NET MVC jqgrid that populates the grid with data from the database. The code is taken from : http://jetmathew.wordpress.com/2011/03/02/asp-net-mvc-2-with-entity-framework-json-jquery-and-jqgrid/

The problem is that when I go to second page and sort the data with any column. It sorts the whole data but takes me to 1st page. I want to remain on second page with whole sorted data. Is this a bug? And is there anyway around to get things go my way?

The sane thing is happening on all example开发者_运维百科s on this link as well. http://www.trirand.com/blog/jqgrid/jqgrid.html


It's not a bug. Think about it, what meaning does the pagenumber have when the sortcolumn changes? IMHO none since you are looking at a different dataset... What are you trying to achieve here?

edit

Craig Stuntz added Jquery BBQ integration to Jqgrid. This enables url history to jqgrid. Using this you can take the current page from the querystring.

http://craigstuntz.github.com/jqGrid/

I still stand by my original answer though :)

/Daddy

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜