Title: datagrid validatebox vs. combobox Post by: jaimi on August 30, 2017, 09:11:52 PM I want to define a validatebox with prompt:
It doesn't show the prompt. ,{field:'PUA_STATUS',title:'Status',width:080,sortable:'true' ,editor:{ type:'validatebox' ,options:{ required:true ,disabled:false ,editable:true ,prompt:'Status...' ,missingMessage: 'Geben Sie den Status ein.' }//options }//editor //,editor:{type:'validatebox',options:{required:false}} }//field If I make a combobox of it then it shows the prompt. Whats wrong? ,{field:'PUA_STATUS',title:'Status',width:080,sortable:'true' ,editor:{ type:'combobox' ,options:{ required:true ,disabled:false ,editable:true ,prompt:'Status...' ,missingMessage: 'Geben Sie den Status ein.' }//options }//editor }//field It works when I make a textbox out of it: ,{field:'PUA_STATUS',title:'Status',width:080,sortable:'true' ,editor:{ type:'textbox' ,options:{ required:true ,disabled:false ,editable:true ,prompt:'Status...' ,missingMessage: 'Geben Sie den Status ein.' }//options }//editor }//field Title: Re: datagrid validatebox vs. combobox Post by: jarry on August 31, 2017, 07:10:19 AM The 'validatebox' is a pure <input> element. It hasn't the 'prompt' property. You have to attach a 'placeholder' attribute by yourself.
|