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

Auto sorting in HTML rendering #26

Closed omerd closed 11 years ago

omerd commented 12 years ago

In some situations, when sort is enabled, HTML table rendering is misbehaving. The table is auto-sorted, although the header row was not clicked. However, when I came to edit a filed by clicking it, the input of the field was reverted to the original value before the table sort. If I wouldn't edit the value, the value that will be shown is the original one, but modelChanged function was not called.

You can see it here: http://www.editablegrid.net/editablegrid/examples/attach/index.html For example, in the country row click on France field. you will get Belgium automatically.