EasyUI Forum
May 16, 2024, 12:08:20 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: styler in propertygrid  (Read 3769 times)
jmansur
Newbie
*
Posts: 31


View Profile
« 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}
           ]]
   });
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


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