Hi Bryntum Team,
i dry to sort a calendar ResourceStore unfortunately without success
What i do is this
const project = new bryntum.calendar.ProjectModel({
startDate: new Date().toISOString(),
resourceStore: {
sorters: [{ field: "name", ascending: false }],
data: [
{
name: "a",
eventColor: "#ff0000"
},
{
name: "b",
eventColor: "#ccc"
}
]
}
});
new bryntum.calendar.Calendar({
minHeight: 525,
height: '100%',
resourceStore: project.resourceStore,
// Start life looking at this date
date: new Date(),
dateFormat: 'DD.MM.YYYY',
// This element becomes the Calendar's encapsulating element
adopt: 'frn-calendar-container',
});
The order of the resources is always a, b whether the sorter is { field: "name", ascending: false } or { field: "name", ascending: true }.
Please give me a help for sorting resources.
Tested with version 4.0.8 and 4.3.2
Thanks
Philipp