EasyUI Forum
September 18, 2024, 08:50:34 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: display row in edatagrid after restyle  (Read 4528 times)
jaimi
Full Member
***
Posts: 119


View Profile
« 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
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!