webismymind / editablegrid

EditableGrid is an open source Javascript library aimed at turning HTML tables into advanced editable components. It focuses on simplicity: only a few lines of code are required to get your first table up and running.
http://www.editablegrid.net
Other
795 stars 272 forks source link

Multiple row removal painfully slow #31

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hi

Removing more 20 rows starts becoming very slow - the call to refresh the grid after every remove seems to be the culprit. I have added a removeMulti function and edited the remove function to allow for suppressing the refreshGrid when removeMulti calls remove().

You can view this at https://github.com/dineshcooper/editablegrid/commit/dfc1a9456004616005df412c1777c6529c95cd1c

Seems to work well for me but would like to see if you have a more elegant solution.

Thanks