EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jaimi on October 06, 2016, 03:20:45 AM



Title: MissingMessage does not apear within a datagrid
Post by: jaimi 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


Title: Re: MissingMessage does not apear within a datagrid
Post by: jarry 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.


Title: Re: MissingMessage does not apear within a datagrid
Post by: jaimi 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?