View Full Version : Tabpanel with deferredRender and decimalFields

31 Jan 2011, 4:34 AM
I have a program with the following structure:

_Doubleclick on row opens a window

When the window opens up the form is loaded with XML-data and when the form is saved all data i sent back to the server.

If I use:

defferedRender:falseall tabs and formitems are are rendered when the window opens. If there are many items a large delay occurs. (I know, that part is an architecture issue more than an Ext problem). The delay is OK but I noticed that FireFox displays an alert on an old computer 'Warning Unresponsive Script' with the options 'Continue' and 'Stop'. If the user presses 'Continue' it works fine but it's not nice looking.


One solution is to use:

defferedRender:trueand render the tabs when they are clicked. It works fine with one big exception: numberfields with decimals.
- The data in the XML that loads into the form contains numbers in the form xxx.yyy.
- The field in the record is defined as 'float'
- There is an override in .js

Ext.override(Ext.form.NumberField, {
decimalSeparator: ','
- Somehow the override doesn't seem to work completely when the tabs are rendered this way. If a field contains a decimalnumber it doesn't show anything at all.

Is it a bug or a feature?!