jQWidgets Forums

jQuery UI Widgets Forums Scheduler Refresh Schedule

This topic contains 4 replies, has 3 voices, and was last updated by  Peter Stoev 8 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Refresh Schedule #79618

    gusanomaly
    Participant

    Hello friends!

    I need refresh my schedule each n minutes, I’m using the javascript function setInterval() but I don’t know how method call of the Scheduler.

    In grid i’m using: $(“#grid”).jqxGrid(‘updatebounddata’);
    Something like this I need.

    Thank you very much!
    See you,
    Gustav.

    Refresh Schedule #79630

    Peter Stoev
    Keymaster

    Hi Gustav,

    You can set the Scheduler’s source property to a new dataAdapter instance if you want to update the Scheduler appointments.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Refresh Schedule #79661

    gusanomaly
    Participant

    Ok, thank you!!!

    Gustav.

    Refresh Schedule #88314

    Edu
    Participant

    Hi!

    I’m trying to do the same thing but, how do I set this property?

    I’m trying with a modification of the timeline view with resources demo. If I set the source to be “adapter” when loading the scheduler for the first time, everything works well… but I cannot change or update the source once it’s loaded. I’m trying with this little modification:

    			$("#scheduler").jqxScheduler({
    				date: new $.jqx.date(2016, 11, 23),
    				width: 850,
    				height: 600,
    				dayNameFormat: "abbr",
    				/*source: adapter,*/
    				showLegend: true,
    				ready: function () {
    					//$("#scheduler").jqxScheduler('ensureAppointmentVisible', 'id1');
    					if (refreshBookingsSource) {
    						refreshBookingsSource = false;
    						console.log("refreshing");
    						$("#scheduler").jqxScheduler({
    							source: adapter
    						});
    					}
    				},

    I’ve modified nothing but this (commented the source and then set it inside the ready function). The log makes its way to the console, but the appointments are not updated.

    Thanks in advance for your help!

    Refresh Schedule #88501

    Peter Stoev
    Keymaster

    Hi Edu,

    You can try with new dataAdapter instance. This should update Scheduler’s data source.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.