⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

The same grid line should be empty



Mayus

Mayus
  • profile picture
  • Member

Posted 16 December 2013 - 04:47 AM

Can I create a grid like this with grocery crud:

 

+------------------------------------------------------------------+
| Programing |Framework | Package Price (IDR) |
+------------------------------------------------------------------+
| PHP               | Codeigniter       |   1.500                      |

|                       | YII                     |   1.000                      |

|                       | Zend                 |   1.400                      |

| Java               | Hibernate          |    3.000                    |

|                       | Spring               |    2.500                     |

| Javascript      | Jquery               |    1.000                     |

+------------------------------------------------------------------+

 

I've tried using the callback_column but unsuccessful. I hope you guys can help me

 

my code callback :

 

$crud->callback_column('id_programming',array($this,'_callback_programming'));

 

 

and :

 

public function _callback_programming($value, $row)
    {
       $now = $row->id_programming;
      if($last!=$now){

            $tampil =  $value;
      }else{
           $tampil =  " ";
       }
        $last = $row->id_programming;
        
        return $tampil;
    }

 

I hope anyone can solve my problem. thank you