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.
-
Author
-
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
});
});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 HristovjQWidgets team
http://www.jqwidgets.comHello 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,
HenleyHello 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 HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.