ExtJS TextField values submitted as a string instead of integer/number -


i have ext editor grid numbercolumn. column's editor set ext.form.textfield. grid populated json , data submitted json.

my problem when user enters number in column, sent string instead of number. in other words, looks property: "500" , want this, property: 500.

my column definition:

new ext.grid.numbercolumn ({             header: 'area (ha)',             dataindex: 'area',             format: '0',             width: 60,             editor: new ext.form.textfield({                 allowblank: false             })         }) 

and field definition column:

{ name: 'area'} 

i've tried nothing:

{ name: 'area', type: 'int' } 

any ideas? thanks!

found resolution. apparently there's ext.form.numberfield. it's not listed in extjs documentation, had search it.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -