EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jmansur on August 10, 2015, 11:17:49 AM



Title: styler in propertygrid
Post by: jmansur on August 10, 2015, 11:17:49 AM
I set styler function but dont create de propertygrid.

why?

Best regardsss.

   function EstiloEtiquetas(value, rowData, index){
         return 'background-color:F0F0F0';
   }
   
   $('#pgSucursal').propertygrid({
       data: <%=sRow%>,
       width: '98%',
       showGroup: true,
       showHeader:true,
            scrollbarSize: 0,
       groupFormatter: FormatearGrupo,
       columns: [[
                        {field:'name',title:'',width:200,resizable:false,formatter:FormateaEtiqueta,styler=EstiloEtiquetas},
         {field:'value',title:'',width:400,resizable:false,formatter:FormateaValor}
           ]]
   });


Title: Re: styler in propertygrid
Post by: jarry on August 11, 2015, 01:08:42 AM
There are some mistakes in your code. Please correct it.
Code:
function EstiloEtiquetas(value, rowData, index){
return 'background-color:#F0F0F0';
}
Code:
columns: [[
{field:'name',title:'',width:200,resizable:false,formatter:FormateaEtiqueta,styler:EstiloEtiquetas},
{field:'value',title:'',width:400,resizable:false,formatter:FormateaValor}
]]