EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jmansur on September 18, 2015, 07:33:56 AM



Title: Can I use 'selected=true' in combogrid?
Post by: jmansur on September 18, 2015, 07:33:56 AM

Im use this command

$('#cbgSucursal').combogrid('enable').combogrid('reload', 'Ajax/get_Sucursales.asp?Nom=S&IdUnico=10000);

the return json is:

["DescSuc":"POSADAS","SucServDesc":"SUCURSAL","CajaSeguridad":"N","IdUnico":"10000" , "selected":"true" },
{"DescSuc":"RENTAS SAN MARTIN","SucServDesc":"ANEXO","CajaSeguridad":"N","IdUnico":"10001" },
{"DescSuc":"POSADAS","SucServDesc":"SECTORIZADO","CajaSeguridad":"N","IdUnico":"10101" },
{"DescSuc":"OBERA","SucServDesc":"SUCURSAL","CajaSeguridad":"N","IdUnico":"20000" }]

But de combogrid not display the selected row.

Regards


Title: Re: Can I use 'selected=true' in combogrid?
Post by: jarry on September 18, 2015, 07:46:43 AM
No, but you can call selectRow method to select those marked rows after loaded datagrid.