Open pmiklashevych opened 3 years ago
Grouping support is added in https://github.com/bryntum/support/issues/2608.
But GroupSummary
feature support is not added yet and will be done in this ticket
Are there any updates on this issue?
Not yet we've just added Grouping
feature support in another ticket.
Ah ok, do you know when this issue will be solved?
Are there any updates on this issue 🙂?
@thijs4ef Hello. It's looks almost fixed as far as I see. I've just tested it in v6.0.2 and there is no exception and it looks working after I registered the feature for the histogram base class:
import GroupSummary from '../../lib/Scheduler/feature/GroupSummary.js';
import GridFeatureManager from '../../lib/Grid/feature/GridFeatureManager.js';
// add the feature to the histogram class before using it
GridFeatureManager.registerFeature(GroupSummary, false, 'ResourceHistogram');
const histogram = new ResourceHistogram({
features : {
group : 'city',
groupSummary : {
collapseToHeader : true,
renderer({ events }) {
debugger
return `<label>${events.length || ''}<label>`;
}
}
},
Please check and let us know if that workaround for you.
Requested here: https://www.bryntum.com/forum/viewtopic.php?p=81818#p81818
SchedulerPro/examples/resourcehistogram/app.js
Also should support zooming in/out.
Replacing
scheduler.eventStore
withscheduler.project.eventStore
helps with the first failure But then it fails while zooming and it doesn't show summary row first time before refresh