Support setting text fields to empty strings or NULL in the data editor grid. Fixes #1790

This commit is contained in:
Surinder Kumar
2017-02-04 14:10:30 +01:00
committed by Dave Page
parent c17e201a92
commit 54ba1fbe59
3 changed files with 123 additions and 9 deletions

View File

@@ -630,7 +630,7 @@ define(
: Slick.Editors.ReadOnlyJsonText;
options['formatter'] = Slick.Formatters.JsonString;
} else if(c.cell == 'number') {
options['editor'] = is_editable ? Slick.Editors.Text
options['editor'] = is_editable ? Slick.Editors.CustomNumber
: Slick.Editors.ReadOnlyText;
options['formatter'] = Slick.Formatters.Numbers;
} else if(c.cell == 'boolean') {
@@ -640,6 +640,7 @@ define(
} else {
options['editor'] = is_editable ? Slick.Editors.pgText
: Slick.Editors.ReadOnlypgText;
options['formatter'] = Slick.Formatters.Text;
}
grid_columns.push(options)