jQuery UI Widgets › Forums › Scheduler › Legend turning on/off captured?
This topic contains 3 replies, has 2 voices, and was last updated by Stanislav 7 years, 8 months ago.
-
Author
-
Hi,
I am trying to get a list of final resources and this includes if any were switched off using the legend. But this information does not seem to be captured anywhere?
I have here an example: https://jseditor.io/?key=a49d72e841be11e8b3a100224d6bfcd5
See that I have hidden the legend/appointments using: $(‘#scheduler’).jqxScheduler(‘hideAppointmentsByResource’, ‘Interviewer 2’); This is hiding the appointment/s as expected.
When I later print the value of the hidden attribute for all the appointments, they all show as false.Basically, what I am trying to do is send a list of all active interviewers to my server. I have such a list maintained (consisting of Ids, not the resourceId, in my case), and am trying to update it when a user turns off a legend (i.e. it should be removed from my list) (or added when they turn the legend back on). But I am not able to find this information using the above method. I am also struggling with using mouseup event to do this, as I have to check during every mouseup, instead of having a dedicated event for legendClick, so let me know if there is one!
I tried to use jquery and can get this: $(“#legendbarbottomscheduler”).find(“[data-toggle=off]”), but the IDs are not associated to these tags (only the resource ID which is printed next to the legend square), so I cannot use it.
Any help is appreciated!
Thanks,
RoshiniHello Roshini,
Why don’t you try seeing if the actual appointment is hidden or not?
Try this:console.log(value.jqxAppointment.hidden)With this, you can get which appointment is shown or hidden.
Best Regards,
StanislavjQWidgets Team
http://www.jqwidgets.com/Perfect, thank you.
Updated example (for anyone looking): https://jseditor.io/?key=a49d72e841be11e8b3a100224d6bfcd5-ver-2 -
AuthorPosts
You must be logged in to reply to this topic.