PDA

View Full Version : EditorGridPanel onComplete and complex data types.



revolunet
28 Mar 2011, 3:30 AM
Hi

Im using complex data types in my records for some fields; It works great in most case except with EditorGridPanel, because when onEditComplete is fired, the old and newvalue are always compared as String :


// line 212 at http://dev.sencha.com/deploy/dev/docs/source/EditorGrid.html#cls-Ext.grid.EditorGridPanel :
if(this.forceValidation === true || String(value) !== String(startValue)){

Ive overridden onEditComplete to replace String calls with Ext.encode as it can compare complex types.

Maybe this could be the default behaviour ?

Cheers

Jul.