jQuery UI Widgets › Forums › Scheduler › missing parameters in the appointments events
Tagged: jquery scheduler, jqwidgets scheduler, jqxScheduler
This topic contains 5 replies, has 2 voices, and was last updated by Peter Stoev 9 years, 5 months ago.
-
Author
-
Hi, i’m sorry for being such a problem for you guys, i just keep asking question after question =/
Sorry for my bad english, i will try my best here.I’m dealing right now with the events appointmentAdd and appointmentChange.
appointmentAdd:
1. Whenever i create an appointment using the editDialog and then look at the args.appointment object passed to the event, there is no “allDay” parameter even if i check the “allDay” checkbox he just does not show up in the args.appointment, so how can i access the allDay parameter field which is a boolean so i can get it and save it in my SQL Server?.2. The args.appointment also does not show me what style/color was selected in the color dropdownlist. It just returns me undefined. If you want to try this just set an alert on the appointmentAdd like this: ‘alert(appointment.style)’ and it will just show undefined, how can i see what color was chosen in the dropdown?.
appointmentChange:
1. The args.appointment shows the old values, so i have to use args.owner.editAppointment to get the updated values, which is fine but i think that the documentation is kinda misleading, but here is the problem: the args.owner.editAppointment with the updated values only exists if i update an appointment using the editDialog so when i drag and drop an appointment and the event appointmentChange is triggered i can’t use the args.appointment because it shows me the old values and there is no args.onwer.editAppointment, so how can i get the updated date/time when the changeAppointment is triggered by the drag and drop?Hi GMartins,
We will take a look into these for future version of the Scheduler. The “style” by default is undefined and in most cases it would be. It is defined only during the Scheduler’s initialization when you have style in the data source. Setting colors through DropDownList does not set “style”. It sets background, border, etc. The appointment fields are the “appointmentDataFields” which you use in your Scheduler. If you don’t have allDay, then you would not have such field in your appointment, too. Thanks for letting us know.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comI’m not trying to be rude and i appreciate your answer but there is not any solution to what i questioned? for instance: the updated values in drag and drop appointmentChange or how to see the color chosen in drop down, i understand that the dropdown defines the border, color, etc but how can i access the color and the border color chosen? the updated appointment must be somewhere in the args object.
Sorry for my bad english.Hi GMartins,
You can get information about appointments using the getAppointmentProperty method. The args.appointment contains the appointment object which has fields defined in the Scheduler’s appointmentDataFields and that is all.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThank you, one last question: I noticed that the location/address parameter/property is not loaded when you open the editDialog, every demo that i looked the location field is empty when the editDialog is opened, how can i solve this?
Hi GMartins,
You can access the dialog fields as shown in the demos and customize them or fill them with some data.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.