jQWidgets Forums
jQuery UI Widgets › Forums › Getting Started › Getting the Rendered Date Range in jqxScheduler and adding appointments
Tagged: jqxScheduler appointments
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 6 years, 8 months ago.
-
Author
-
September 6, 2018 at 1:00 pm Getting the Rendered Date Range in jqxScheduler and adding appointments #101879
When I am using fullcalendar.io there is an api function which is triggered when the calendar is rendered.
There is an api function that tells me what the date range is being rendered by the calendar.
There is also an api function that allows me to show and hide arrays of events.I use an Ajax function on the server to get the events I need for the required time period.
Can I do this with the jqxScheduler? If so can you please provide a coded example?
Everything I have seen so far seems to suggest that you need to get the appointments / resources before initializing the jqxScheduler
September 7, 2018 at 5:50 am Getting the Rendered Date Range in jqxScheduler and adding appointments #101883Hi GateKeeper,
We have rendering and rendered callbacks in jqxScheduler. These are called before and after the Scheduler is rendered. We do not have API to get what will be rendered. Example of rendering and rendered: https://jseditor.io/?key=jqxscheduler-rendered-and-rendering-callbacks. The getAppointments method which our Scheduler has, will return all appointments of the Scheduler. You can check each appointment’s from and to as start and end dates. The Scheduler also has a “date” property which returns the view’s start date.
Best Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.comSeptember 10, 2018 at 1:09 pm Getting the Rendered Date Range in jqxScheduler and adding appointments #101914Hi Peter,
In all the examples I have seen the code first gets the appointments and then creates the jqxScheduler.
I have been able to significantly improve things from where they were originally.
However what I would ideally like to do is:
Step 1 Create the jqxScheduler
Step 2 Create the resources for the jqxScheduler
Step 3 Go to the server and get the appointments for the date range currently being displayed (whether it is Day, Week, or Month) that are in the database.At the moment I display the jqxScheduler in week mode as default. I have to decide what I should use as the start and end date, get the appointments from the server, then create the jqxScheduler.
It is all a bit problematic if you are using the jqxScheduler for the first time and don’t yet have any appointments. Users would expect to see the Scheduler with the resources that they have already set up in my web application.
What currently happens is if there are three resources, they do not become visible until there is at least one appointment for each resource.
Do you have any suggestions for doing things in the correct order rather than having to do things in reverse order?September 11, 2018 at 6:25 am Getting the Rendered Date Range in jqxScheduler and adding appointments #101924Hi Gatekeeper,
If you set the resources property of the Scheduler and make it to point to a data adapter, then the resources would not be auto-created based on the appointments. For example: https://jseditor.io/?key=5f50c6c4b58b11e88bf900224d6bfcd5. In the sample, scheduler has no appointments but has resources.
Best Regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.