PDA

View Full Version : [CLOSED] EnforceMaxLength and MaxLength Dynamically



softmachine2011
Jul 11, 2012, 10:32 AM
Hi,

In Ext.NET v1.x I do the following:



txtValor.setMaxLength(50);


In v2 I try with


txtValor.maxLength = 50;
txtValor.enforceMaxLength = true;


But I have to do anything more because txtValor textfield don't use new values.
What method I have to invoke?

Daniil
Jul 11, 2012, 11:57 AM
Hi,

Please use:

TextField1.maxLength = 3;
TextField1.enforceMaxLength = true;
TextField1.inputEl.set({
maxLength : 3
});

softmachine2011
Jul 11, 2012, 12:27 PM
It works.
Thank you very much