Scheduler event not positioned correctly on initial load

4 posts, 0 answers
  1. Manish
    Manish avatar
    4 posts
    Member since:
    Feb 2015

    Posted 19 Feb 2015 Link to this post

    Hi,

    I have a scheduler with groups and it show's up as part of Foundation's reveal modal. The scheduler is configured with one event, but on initial draw the event does not show up at correct spot. Once i tab between different views (timeline and timeline week), it appears at correct location. Here is a screenshot of how it shows up initially, you can see it in the left corner (it is supposed to show up at 6 PM column and is 1 hour long). I can provide with code snippet if needed.

    Thanks,
    Manish
  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2194 posts

    Posted 23 Feb 2015 Link to this post

    Hello Manish,

    Could you please provide runable example where the issue is reproduced? This would help is identify the exact reason for current behavior. 

    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Manish
    Manish avatar
    4 posts
    Member since:
    Feb 2015

    Posted 23 Feb 2015 in reply to Vladimir Iliev Link to this post

    Hi Vladimir,

    You can reproduce it here:
    http://dojo.telerik.com/EtohO

    On initial load the view just does not show up properly. Once you click on any other tab, it redraws correctly.

    Thanks,
    Manish
  4. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2194 posts

    Posted 24 Feb 2015 Link to this post

    Hello Manish,

    Current behavior is expected as the scheduler doesn't support initialization from hidden container. In current case you should initialize the scheduler when the dialog is visible (already opened) or refresh the current view as follows:

    var scheduler =  $("#scheduler").getKendoScheduler();
    scheduler.view(scheduler.view().name);

    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top