我正在寻找一个带有 Excel 的 jQuery GRID 组件,例如编辑,它允许我修复前 N 列,然后允许其余列水平滚动。
它绝对必须是一个 jQuery 组件。
我已经在 stackoverflow 上查看了其他答案,但它们绝对不够好 - 它们不支持 Excel 之类的编辑。这是我检查的内容:
还有其他人,但他们甚至没有接近。
我正在寻找一个带有 Excel 的 jQuery GRID 组件,例如编辑,它允许我修复前 N 列,然后允许其余列水平滚动。
它绝对必须是一个 jQuery 组件。
我已经在 stackoverflow 上查看了其他答案,但它们绝对不够好 - 它们不支持 Excel 之类的编辑。这是我检查的内容:
还有其他人,但他们甚至没有接近。
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.