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
The creation of the ResourceStore is obeying:
But the ResourceFilter
in the Sidebar
uses a chained store (basically a slave store, so that it does not affect the main resourceStore and the main resourceStore does not affect it)
It is configured to sort itself in ascending order.
You can configure it:
sidebar : {
items : {
resourceFilter : {
store : {
sorters : [{
ascending : false
}]
}
}
}
}