PDA

View Full Version : Grid numberfield dirty mark



panbayi
23 Jan 2013, 2:53 AM
Hi there!
I'm using ExtJS 4.1.1.I have a column in a grid and it's editor's Xtype is 'numberfield',the problem is when I click the cell it would be marked with a dirty sign(a red triangle) no matter whether I input anything or not.
So is it a bug ? If not,what should I do?

Any help will be appreciated!

mitchellsimoens
28 Jan 2013, 1:29 PM
It means that the model field's value has changed.

Farish
29 Jan 2013, 1:30 AM
it could be that the value in the store before you start editing is a string whereas when you start editing, then its saved as an integer... debug and see whats the difference in the store's record before and after you click to edit.

panbayi
29 Jan 2013, 5:52 PM
it could be that the value in the store before you start editing is a string whereas when you start editing, then its saved as an integer... debug and see whats the difference in the store's record before and after you click to edit.
I will check, thank you !!