Does anyone know how to make RowEditor in ExtJS 3.4 show a custom validation message?
Eg, the ExtJS sample ( http://dev.sencha.com/deploy/ext-3.4.0/examples/grid/row-editor.html ) the first column editor is defined like this:
editor: {
xtype: 'textfield',
allowBlank: false
}
With this RowEditor displays a "Field is required" message when this field is empty. I need to replace this message with a custom one, so I change the editor definition:
editor: {
xtype: 'textfield',
allowBlank: false,
invalidText: 'Cannot be empty'
}
but the RowEditor still displays the default message. Any suggestions?
Thank you.
As your validation is if allowBlank,so you should use the property "blankText",
editor: {
xtype: 'textfield',
allowBlank: false,
blankText: 'Cannot be empty'
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.