EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jaimi on November 19, 2014, 12:41:44 AM



Title: display row in edatagrid after restyle
Post by: jaimi on November 19, 2014, 12:41:44 AM
Hi, I to your example for depending row-style, which works fine.
...
columns:[[ 
    {field:'OLT20I001T_KEY',title:'OLT20I001T_KEY',width:130,sortable:'true'/*,hidden:'true'*/}
   ,{field:'OLT20A009T_KEY',title:'OLT20A009T_KEY',width:130,sortable:'true'/*,hidden:'true'*/}
   ,{field:'OLT20A010T_KEY',title:'OLT20A010T_KEY',width:130,sortable:'true'/*,hidden:'true'*/}
   ,{field:'PFA_NAME',title:'PFA_NAME',width:500,sortable:'true'
     ,editor:{ type:'textbox'
              ,options:{required:'true',prompt:'Firma...',missingMessage: 'Geben Sie den Firmennamen ein.'}}}
    
   ]]//columns
   ,rowStyler: function(index,row){
     if (row.OLT20I001T_KEY < 10000000){
      return 'background-color:#1a1a1a;color:#fff;font-weight:normal;';
     }
    }
...

But now the style doesn't change when the row is clicked for update like the original behavior.

How can I manage that?
THX; Jaimi