Jump to content

How to create an editable table??


Acute

Recommended Posts

please, can anyone help me to create an editable table?i mean the table looks like Excel table(read&write table).

Any ideas or advises?

If you have any javascript experience, take a look at a javascript library like extjs that provides an editable grid. While it can't handle merging and splitting cells as you can in Excel, it provides a lot of basic functionality that is similar in nature.

It appears to me that none of those suggested frameworks provide "Excel" like functionality.

They do grids and tables, not editable spreadsheets.

I have had to create such an animal in the past, but the functionality was so specific, it wouldn't do you any good.

Perhaps I'll look at starting such a project if I can't find one, you've got me curious.

It appears to me that none of those suggested frameworks provide "Excel" like functionality.

They do grids and tables, not editable spreadsheets.

Well you're not going to find it easy replicating Excel in javascript. A javascript grid would simply be the front-end tool for presentation and editing. You'd still need server side logic for reading/writing Excel itself.

 

Logically, you'd want the server to read Excel and provide the structure of the workbook to a js grid; edit the data or formatting within the grid itself; and when changes are made to the grid, send a server request to recalculate the worksheets.

 

I've done this using PHPExcel and ext js editable grids, but had problems even then with splitting and merging cells. I also used APC caching to keep the Excel workbook "memory resident" while it was being worked on (for performance reasons); but it's definitely non-trivial coding.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.