Discuss anything related to web development but no technical support questions
Hello
I am using trial version for my POC and wanted to add resources along with the images from database. I did not find proper example of how I could do this. As of now I am doing my POC on React - Advance from example folder.
Can anyone help me to understand how I could do this?
Thanks
Yes I have tried ASP.NET Core demo but when I run I got following error
- error.PNG (15.99 KiB) Viewed 2346 times
Also in demo there are store's file like Resources.js so, same way I need to create in React demo?
Hi sandippatel,
Thanks for the report, I was able to reproduce the error in our example, here is a ticket: https://github.com/bryntum/support/issues/1801 .
Your question is very general. Could you please specify what exactly is not clear to you?
Also in demo there are store's file like Resources.js so, same way I need to create in React demo?
You don't have to to extend ResourceStore
with your own store class, you can just configure it as you want, if you want to add extra fields or your own model.
https://bryntum.com/docs/gantt/#Gantt/data/ResourceStore#config-fields
https://bryntum.com/docs/gantt/#Gantt/data/ResourceStore#property-modelClass
I am using trial version for my POC and wanted to add resources along with the images from database.
To be able to work with your backend, you need to configure CrudManager
with proper URLs. You can find JSON data format in any of our examples, as example basic
one. Did you read our docs/guides about CrudManager and Project setup?
https://bryntum.com/docs/gantt/#Scheduler/data/CrudManager
https://bryntum.com/docs/gantt/#guides/data/crud_manager.md
https://bryntum.com/docs/gantt/#guides/integration/react.md
https://bryntum.com/docs/gantt/#Gantt/model/ProjectModel
https://bryntum.com/docs/gantt/#guides/project_data.md
Actually, it doesn't matter what backend do you use, frontend configuration will looks the same and only depends from your API endpoints and data format.
All best,
Alex
Thank
for resource manager, my question was : I have resources(Users) in my database. so I want to show that members when I want to assign any task to that member. so how would I configure Gantt so that I could fetch the resources from database?
@sandippatel Please don't post in Community Discussion, post in the relevant product forum for your question.