1

我正在寻找一个带有 Excel 的 jQuery GRID 组件,例如编辑,它允许我修复前 N 列,然后允许其余列水平滚动。

它绝对必须是一个 jQuery 组件。

我已经在 stackoverflow 上查看了其他答案,但它们绝对不够好 - 它们不支持 Excel 之类的编辑。这是我检查的内容:

还有其他人,但他们甚至没有接近。

4

2 回答 2

0

I looked for the same type of thing and found very few solutions and the ones I did find either had issues or seemed hard to work with for things like editing.

So I rolled my own and learned a lot about browser reflows (speed), and dom manipulation. I needed to display 200-300 rows and 58 columns with a fixed header and x number of fixed left columns. Some solutions just got downright sluggish when trying to edit or scroll.

I used the jQuery UI Widget factory pattern for my code. So far it supports sorting, cell renderers, row numbering, row select modes, and events for before/after edit render.

You can check out a fairly recent test at http://chronosrealty.com/fcTable/fcTable.html and steal the code as needed if it works for you. Cells are editable starting at column '11/5'. Still adding features and restructuring and hope to make it available with documentation sometime soon.

于 2013-02-02T21:33:58.907 回答
0

你可以看看 jQuery DataTables。它支持一个或多个固定列。

  • 这是一个有一个固定列的示例:示例 1
  • 这是另一个具有两个固定列的示例:示例 2
  • 这是一个编辑示例:示例 3

jqGrid 也支持这些特性。这是它的演示页面

于 2013-01-26T02:48:08.613 回答