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

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -