jQuery UI Widgets Forums Scheduler Legend not updated after changed source

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

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

  • Henley
    Participant

    Good Day,

    I’m trying to get my appointment data after date changed. The problem now is after i changed the source, the legend value didn’t update accordingly. Anyone can tell me what steps I had miss out? Thanks

    $(‘#scheduler’).on(‘dateChange’, function (event) {
    var appointments2 = new Array();
    var args = event.args;
    var date = args.date;
    var from = args.from;
    var to = args.to;

    var appointment5 = {
    id: “id5”,
    description: “”,
    location: “”,
    subject: “Marketing Future Expo”,
    owner: “Person 1”,
    start: new Date(2015, 09, 20, 16, 0, 0),
    end: new Date(2015, 09, 20, 16, 0, 0)
    }

    var appointment6 = {
    id: “id6”,
    description: “”,
    location: “”,
    subject: “Future Computing”,
    owner: “Person 2”,
    start: new Date(2015, 09, 18, 16, 0, 0),
    end: new Date(2015, 09, 18, 16, 0, 0)
    }

    appointments2.push(appointment5);
    appointments2.push(appointment6);

    var source2 =
    {
    dataType: “array”,
    dataFields: [
    { name: ‘id’, type: ‘string’ },
    { name: ‘description’, type: ‘string’ },
    { name: ‘location’, type: ‘string’ },
    { name: ‘subject’, type: ‘string’ },
    { name: ‘owner’, type: ‘string’ },
    { name: ‘start’, type: ‘date’ },
    { name: ‘end’, type: ‘date’ }
    ],
    id: ‘id’,
    localData: appointments2
    };

    adapter = new $.jqx.dataAdapter(source2);

    $(“#scheduler”).jqxScheduler({
    source: adapter
    });
    });


    Hristo
    Participant

    Hello Henley,

    Thank you for this feedback.
    I would like to suggest you check your approach to update the source of the jqxScheduler.
    I will create a work item for this case where the ‘legend’ does not update.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com


    Henley
    Participant

    Hello Hristo Hristov,

    Alright. Wait your update on this issue. Besides that,I have another question regarding legend as well. Is it possible to customize the legend where user can filter by appointment status instead of resource? Thanks in advance.

    Best Regards,
    Henley


    Hristo
    Participant

    Hello Henley,

    Unfortunately, there is no such option.
    I would like to suggest you check the “Release History” from time to time for the all new things and fixes.

    Best Regards,
    Hristo Hristov

    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.