Am I allowed to use Grid component as a standalone from Brynthum Scheduler package ( my company bought Brynthum Scheduler Licence) if not thats fine I will just order it.
I am trying to build specific Grid that is grouping items based on date
Group header should calculate min and max, and sum on come columns and I implemented that with summaryRenderer config and sum property for column.
Problem is that I need to display custom footer in here
features: { summary : true }
So now concrete question:
Is it posible to differentiate between group header summary call of summaryRenderer method and footer summary call to the same method?
Result should ommit some sum columns in footer...
Not sure I got the question if it's already implemented in the example you mentioned.
It may be reached using https://bryntum.com/docs/grid/api/Grid/column/AggregateColumn to show summaries in headers, and https://bryntum.com/docs/grid/api/Grid/feature/Summary to show totals on bottom tbar. If you don't specify summaryRenderer and summaries for a column, then that column will be skipped. If you don't need group summary for a column in group header, don't specify that column type as aggregate.
Thanks for Info, will order another Licence as well...
I just want to hide some summary columns in the footer (on the picture marked as number 2).
For example, 3 last icons in the bottom.
So my problem is that summaryRenderer is called for group header summary (on the picture marked as number 1), and total grid summary in the footer as well (on the picture marked as number 2).
Hi Alex,
I am one step closer with sum method but how can I detect if sum method is called from footer?
I tried using following properties but no luck:
isGroupFooter, isGroupHeader, isLeaf, isSpecialRow, isParent, isChild, childLevel
sum : (sum, record) => record.descendantCount
{
id : 'total',
type : 'aggregate',
text : 'Total',
flex : 1,
editor : false,
// will be used for group header
format : {
locale : 'en-US',
template : '$9,999',
currency : 'USD',
significant : 5
},
function : 'sum', // or function if required, will be used for group header
field : 'total',
sum : (sum, record) => 'this will be shown in a footer'
}