jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: how to refresh the data how to refresh the data #84175

    Adamt
    Participant

    Hi SteveV,

    I have faced with the similar problem. Here is what I have done to solve the scrolling issue.

    Before I re-bind the scheduler I store the current scroll position based on the appointment’s start hour in a global variable like this:

    var timefrom = new $.jqx.date($(‘#scheduler’).jqxScheduler(‘getAppointmentProperty’, appointment.id, ‘from’));
    scrollposition = $(‘#scheduler’).jqxScheduler(‘rowsHeight’) * 4 * timefrom.hour();
    // *4 because I use 15 minutes divisions, if you use 30 minutes division the use *2

    Create the binding complete event for the scheduler:

    $(‘#scheduler’).on(‘bindingComplete’, function (event) {
    $(“#scheduler”).jqxScheduler(‘scrollTop’, 0);
    if (scrollposition > 0) {
    $(“#scheduler”).jqxScheduler(‘scrollTop’, scrollposition);
    scrollposition = 0;
    }
    });

    It’s working for me. If you have any problem let me know.

    Adam

    in reply to: Resource Problem Resource Problem #83984

    Adamt
    Participant

    Hi Ivailo Ivanov,

    It’s working now. 🙂
    I really appreciate your help in resolving the problem.

    Best Regards,

    Adam

    in reply to: Resource Problem Resource Problem #83975

    Adamt
    Participant

    Sorry the links are missing:

    Please check the video on the following link: https://drive.google.com/file/d/0B4UeOZmMU5PHWnBRcHMxRUU0YW8/view?usp=sharing
    I’m using JSON to populate data: http://pastebin.com/CzKFiaMT
    Here is the code i’m using: http://pastebin.com/6BFi50tw

    in reply to: Get Minutes between 2 time Get Minutes between 2 time #79020

    Adamt
    Participant

    Hi Peter,

    Thanks for your reply.

    The documentation does not say anything about “jqx.timeSpan”.

    Could you suggest any documentation or example for “jqx.timeSpan”?

    Thanks

    Adam

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