jQWidgets Forums

jQuery UI Widgets Forums Scheduler AJAX dynamic loading

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 8 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • AJAX dynamic loading #87665

    nbourdeau
    Participant

    Hi,

    I am trying to figure out how I can integrate the scheduler widget to dynamically load it’s data at runtime.
    I see I can configure a data adapter to use a URL but it seems to only serves for initial loading.
    I don’t want to load all the database !! I want to load only required data for the displayed date range.
    And respond / reload data upon date range change (user changes month / week / day).

    Do you have an example of this ?

    Thanks

    AJAX dynamic loading #87790

    Hristo
    Participant

    Hello nbourdeau,

    You could try to create with custom logic on dataChange event.
    $('#jqxScheduler').on('dateChange', function (event) { var args = event.args; var date = args.date; var from = args.from; var to = args.to; });

    Also I would like to suggest you one article about the DataAdapter.
    I would like to draw your attention to formatData callback.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.