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

Numeric cell editor not displaying configuration option properly #32

Closed mikepparks closed 11 years ago

mikepparks commented 11 years ago

When I define a metadata entry for a field (eg. "double" and give it a "values" property, the renderer handles the display of certain options properly (in my case, "thousands_separator" and "decimal_point"). However, when the field needs to be edited, instead of a text editor as I expect, I'm provided a select dropdown with the values contained in the "values" property in addition to my original value. It seems to me that this may be an issue with the SelectCellEditor incorrectly being triggered for the columns containing a "values" property. This seems to be occurring not only in the snapshot download but the development version as well. The documentation for defining a column's value formatting isn't exactly clear about how this should be done.