EasyUI Forum
May 17, 2024, 11:15:48 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: question of a filtration in datagrid on: June 02, 2014, 08:04:47 AM
I have same problem
2  General Category / EasyUI for jQuery / Re: edatagrid: problem to format a checkbox in edatagrid editor mode on: May 08, 2014, 06:18:46 AM
thank you ....thank you, .....thank you, It works !!!!!!  wiiiiiiiiiiii
3  General Category / EasyUI for jQuery / edatagrid: problem to format a checkbox in edatagrid editor mode on: May 07, 2014, 07:40:24 AM
I have a problem to format a checkbox in edatagrid editor mode:

How I can disable a checkbox in edatagrid editor mode when I have other column value > 0

      {field:'actives',title:'Actives',width:40,align:'center',
     formatter:function(value){
                if (value == 0){
                   return '<span style="color:red;">'+value+'</span>';
                } else {
                    return value;
                }
          },
      {field:'inactives',title:'Inactives',width:80,align:'center',
            formatter:function(value){
                if (value == 0){
                   return '<span style="color:red;">'+value+'</span>';
                } else {
                    return value;
                }
                  }
          },
    {field:'state',title:'Status',width:50,align:'center',
           editor:{type: 'checkbox',
                   options:{on:'S',off:'N', formatter:function(value,row,index){

                   /*** instruction problem *****/
                    if (row.actives > 0)
                        checkbox disabled
                   }

                  }
           },    
           formatter:function(value,row,index){
             if (value == "N")
                  return '<span style="color:red;">'+value+'</span>';
             else            
                  return value;            
           }
       }



Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!