How to Detect if is Group Summary on record summaryFunction

Hi guys, very ease


on summaryFunction just add  record.isGroupSummary or record.isGridSummary



case 'clicks':
$columnas_raw->title = 'Clicks';
$columnas_raw->type = 'float';
$js = " return  isc.Format.toUSString(value)";
$columnas_raw->formatCellValue =   $js ;
//$columnas_raw->recordSummaryFunction = "multiplier";
//$columnas_raw->summaryFunction = "sum";
$columnas_raw->showGridSummary = true;
$columnas_raw->showGroupSummary = true;
$js = " return  '<div style=\"text-align: left;\">Total<br> <div  style=\"font-weight: normal;\">all -- 32 Product(s)</div> Client/Network<br><div  style=\"font-weight: normal;\">-- unallocated data</div></div>' ";
$columnas_raw->summaryFunction = $js ;


if (record.isGroupSummary || record.isGridSummary) return "&nbsp;";

Comments

Popular posts from this blog

smart gwt allow only numbers in textfield

how to access the DOM gwt smartclient

question confirm sc window smartgwt - ventana de confirmacion en smartgwt