I'm wondering how I initialize the ganttcrudmanager? I can't even seem to find the class under the Bryntum namespace.. A guide of how to work with the ganttcrudmanager would be very helpful..
(I'm using ExtJs modern and BOTH scheduler and gantt components)
You can also refer to our demos, for example PHP demo shows how to work with data.
If you have some more specific questions, feel free to create a thread and we will try to help you asap
Cheers,
Pavel
Re: How to use the GanttCrudManager?
Posted: Fri Aug 16, 2019 3:11 pm
by bjork
Thank you. I've gotten pretty much everything to work with crud but I'm still having some troubles configuring the fetchOptions. How would you edit the php-demo to change the fetchOptions (specifically the credentials part)? Can it be done on the transport object itself or do you have to access each individual store and change it there? If you could give an example with the php-demo as base that would be very helpful.
Ok, I think I found the issue (a misspelled key). In your class AjaxHelper the following lines of code can be found:
static fetch(url, options = {}) {
const
controller = new AbortController();
options.signal = controller.signal;
if (!('credentitals' in options)) {
options.credentials = 'include';
}
Since 'credentitals' is never found in the object the last thing the fetch-option does is to add credentials:include on the request. Took me good while to find this bug