最好的 JavaScript 可编辑网格/表格,表格行数约为 1000+

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14051389/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 15:34:36  来源:igfitidea点击:

Best JavaScript editable grids/ tables for table row count of around 1000+

javascriptjqueryjquery-uijsp

提问by VBJ

I searched some of the questions asked on best JavaScript or jQuery grids but I could not find what I need so posting this... If this is asked before please paste the link to it. Thanks!

我搜索了一些关于最好的 JavaScript 或 jQuery 网格的问题,但我找不到我需要的东西所以张贴这个......如果之前问过这个问题,请将链接粘贴到它。谢谢!

My requirements:

我的要求:

  1. I am searching for a JavaScript (jquery preferable) editable tables where a user can use tab (like in excel) to move from one cell to another in a row. Most of the grids I looked - a user has to click on each cell.
  2. A user will be updating multiple columns and rows and data should be updated in db.
  3. This is more of a suggestion than a requirement- is it good practice to load 1000 rows and is the grids capable of handling it?
  1. 我正在搜索一个 JavaScript(jquery 首选)可编辑表,用户可以在其中使用选项卡(如在 excel 中)从一个单元格连续移动到另一个单元格。我查看的大多数网格 - 用户必须单击每个单元格。
  2. 用户将更新多个列和行,数据应在 db 中更新。
  3. 这与其说是要求,不如说是建议——加载 1000 行是一种好习惯,网格是否能够处理它?

My background code will be in jsp/HTML and java/servlets

我的后台代码将在 jsp/HTML 和 java/servlets

Thanks for your help.

谢谢你的帮助。

采纳答案by Pranav ?

You should definitely have a look at SlickGrid, it is flexible, and offers all your requirements.
The best part is it is dead easy to use.

您绝对应该看看SlickGrid,它很灵活,可以满足您的所有要求。
最好的部分是它非常易于使用。

Checkout these examples.

查看这些示例

回答by dean.vaughan

http://trirand.com/blog/jqgrid/jqgrid.html

http://trirand.com/blog/jqgrid/jqgrid.html

jqgrid is a very good plugin to use

jqgrid 是一个很好用的插件

回答by buruzaemon

I highly recommend SlickGrid.

我强烈推荐SlickGrid

It is JavaScript grid/table/spreadsheet UI component built on JQuery. It supports editing, and we use it to load over 1000+ rows of data easily.

它是基于 JQuery 构建的 JavaScript 网格/表格/电子表格 UI 组件。它支持编辑,我们使用它可以轻松加载超过 1000 行的数据。

Have a look at the Spreadsheetexample for ideas.

查看电子表格示例以获取想法。