jQWidgets Forums

jQuery UI Widgets Forums Scheduler Legend turning on/off captured?

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  Stanislav 7 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Legend turning on/off captured? #99740

    roshini.dav
    Participant

    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,
    Roshini

    Legend turning on/off captured? #99780

    Stanislav
    Participant

    Hello 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,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

    Legend turning on/off captured? #99900

    roshini.dav
    Participant

    Perfect, thank you.
    Updated example (for anyone looking): https://jseditor.io/?key=a49d72e841be11e8b3a100224d6bfcd5-ver-2

    Legend turning on/off captured? #100037

    Stanislav
    Participant

    Hi Roshini,

    Thanks for the update!

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.