extjs - button click issue in Ext js -


i have small query created 4 text fields , 1 button,in text fields gave property allowblank:true if user enter shows error message,it's working perfect.if click button inserted perfect,after textboxes becomes empty it's showing blank errormessage.if iam using allowblank:false it's working fine.but require if user not enter in textbox need show error message.

how can resolve issue.any 1 can share idea me.

there 2 solutions :

  • 1st : use ext.form.panel textfield , button inside. allowblank : false property check if texfields empty , if button stay disabled if it's got property formbind : true. fiddle : http://jsfiddle.net/binoss/ublcycht/
  • 2nd : use normal ext.panel.panel same way form.panel, have handle click event on button check texfields not empty, , display error message. fiddle : http://jsfiddle.net/binoss/yz339z7w/

Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -