EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: thiago_brum on August 25, 2016, 10:55:54 AM



Title: inList validate in edatagrid cell
Post by: thiago_brum on August 25, 2016, 10:55:54 AM
How can I use validType:'inList["#COD_USUARIO"]' in this eDataGrid cell?

<th field="COD_USUARIO" width="190" editor="{type:'combobox',options:{valueField:'COD_USUARIO',textField:'NOM_FUNCIONARIO',url: '/logix/ajax_usuarios_buscar',required:true}}"><b>Usuário</b></th>


Title: Re: inList validate in edatagrid cell
Post by: jarry on August 25, 2016, 09:29:32 PM
If you are using easyui 1.5, just need to set the 'limitToList' property to true.
Code:
editor="{type:'combobox',options:{valueField:'COD_USUARIO',textField:'NOM_FUNCIONARIO',url: '/logix/ajax_usuarios_buscar',required:true,limitToList:true}}"