EasyUI Forum
November 04, 2025, 06:28:29 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: MissingMessage does not apear within a datagrid  (Read 9075 times)
jaimi
Full Member
***
Posts: 121


View Profile
« on: October 06, 2016, 03:20:45 AM »

I defined an editor for a textbox within a datagrid and set a missingMessage. Sadly the missingMessage does not show up when the row is in edit-mode.
How can I fix that?

Code:
   ,{field:'ZSP_ORT',title:'Ort',width:100,sortable:'true',align:'left'
      ,editor:{ type:'textbox'
              ,options:{ required:false
            ,prompt:'Ort...'
,missingMessage: 'Geben Sie den Ort ein, wo die Leistungspruefung stattgefunden hat.'
   }
  }//editor
    }//field
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 on: October 06, 2016, 04:47:45 AM »

You should set the 'required' property to true. Thus the missing message will display if the value has not been inputed.
Logged
jaimi
Full Member
***
Posts: 121


View Profile
« Reply #2 on: October 07, 2016, 12:33:52 AM »

You should set the 'required' property to true. Thus the missing message will display if the value has not been inputed.

yes, I realized that. But doesn't it make sense if the missingMessage appears for all kind of input fields, regardless if it is required of not?
I'd like to give the user a hint what he should fill in at the field.

Is there any other possibility to do that?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!