EasyUI Forum
April 30, 2024, 05:59:08 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: inList validate in edatagrid cell  (Read 3890 times)
thiago_brum
Newbie
*
Posts: 26


View Profile Email
« 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>
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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}}"
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!