PDA

View Full Version : [CLOSED] Validator syntax/Example in MVC



matrixwebtech
Jul 12, 2014, 5:58 AM
I want to validate


X.Column()
.DataIndex("countryid")
.Text("Country")
.Renderer("countryRenderer")

.Editor(X.ComboBox()
.QueryMode(DataLoadMode.Local)
//.TriggerAction(TriggerAction.All)
.StoreID("CountryStore")
.ValueField("countryid")
.DisplayField("country")
.AllowBlank(false)

)

I want validate this combo with Validator property but I am not found any example.can you please provide me sample code for mvc.

Daniil
Jul 12, 2014, 9:34 AM
Hi @matrixwebtech,

Please run this link first:
http://examples2.ext.net/?clearExamplesCache=true#

Then this one:
http://examples2.ext.net/#/search/validator

There are two example with a Validator.

Also the ExtJS docs article is useful to read.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.field.Text-cfg-validator