twitter bootstrap - YiiBoster Extended grid sum operation -


i'm using extend yiiboster (last version)

and want add total invoice , want tbsumoperation without success far

i don't know how specify column on columns sum

so far blank rectangle

i copy pasted example page , put after columns=>(),

   'extendedsummary' => array(         'title' => 'total employee hours',         'columns' => array(             'hours' => array('label'=>'total hours', 'class'=>'tbsumoperation')         )     ),     'extendedsummaryoptions' => array(         'class' => 'well pull-right',         'style' => 'width:300px'     ), 

can help?

you have @ line init method

'dataprovider' => $griddataprovider, 

it result query , bind grid, column name sum should put in `extendedsummary.

example: want sum working hours of employees. employee table has column hours this

emp_id|name     |hours  1      kevin     48     2      denton    16     3      harry     30 

.

$griddataprovider = new cactivedataprovider('employeemodel', array(                     'criteria' => array('condition' => 'age > 20'))); 

and should have put hours string grid summary setting


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -