针对大数据集的 jQuery 网格建议?
我正在寻找 jQuery 网格建议,并遇到了这个问题/答案: https://stackoverflow.com/questions/159025/jquery-grid-recommendations
在浏览许多jQuery 网格解决方案在那里,似乎他们都希望在客户端上拥有整个数据集。如果我有一个大数据集(数千/数百万条记录),这些类型的解决方案显然无法很好地扩展(或根本无法工作)
我的问题:是否有 jQuery 网格解决方案使用 Ajax 仅选择一个页面时间?我希望使用客户端通过ajax传入的参数在服务器端处理分页、排序等。
提前致谢,
--Ed
更新:我使用 FlexiGrid 取得了巨大成功 - 应用程序的其余部分是 ASP.NET MVC2。唯一的问题是您需要修改 ASP.NET MVC 附带的 Site.css,因为它为所有表、td 和 th 标签(填充)指定了样式,这会弄乱 Flexigrid L&F。
更新 2:如果您计划拥有多个具有不同数据表的网格,在 Fishysplash 上,有一个很好的实现,可以动态生成必要的 javascript 代码。 http://fishysplash.com/adding-grids-using-flexigrid
I was looking around for jQuery grid recommendations and came across this question/answers:
https://stackoverflow.com/questions/159025/jquery-grid-recommendations
In looking through the many jQuery grid solutions out there, it seems they all want to have the entire data set on the client. If I have a large data set (thousands/millions of records), these types of solutions will obviously not scale well (or work at all)
My question: are there jQuery grid solution out there that use Ajax to select just a page at a time? I expect to handle the paging, sorting, etc on the server side with the arguments passed in from the client via ajax.
Thanks in advance,
--Ed
Update: I am using FlexiGrid with great success - the rest of the app is ASP.NET MVC2. The only gotcha is you need to modify the Site.css that comes with ASP.NET MVC as it specifies a style for all tables, td, and th tags (padding) that messes up the flexigrid L&F.
Update 2: over at fishysplash, there is a nice implementation of a dynamic generation of the necessary javascript code if you're planning to have more than one grid with different data tables.
http://fishysplash.com/adding-grids-using-flexigrid
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为 Elijah Manor 使用 FlexGrid 和 ASP.NET MVC 做了一些事情: http:// /webdevdotnet.blogspot.com/2008/07/flexigrid.html。
I think Elijah Manor did something with this using the FlexGrid and ASP.NET MVC: http://webdevdotnet.blogspot.com/2008/07/flexigrid.html.
您可以尝试使用: https://github.com/mleibman/SlickGrid
这里有一些很好的例子: https://github.com/mleibman/SlickGrid/wiki/Examples
You could try with : https://github.com/mleibman/SlickGrid
Here are some nice examples : https://github.com/mleibman/SlickGrid/wiki/Examples