Jump to content


The same grid line should be empty

grid

  • Please log in to reply
No replies to this topic

#1 Mayus

Mayus

    Newbie

  • Members
  • Pip
  • 2 posts

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







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users