Scheduler disappears when edit window closed on Tablet/mobile phone (Android/iOS)

4 posts, 0 answers
  1. Anamika
    Anamika avatar
    124 posts
    Member since:
    Mar 2014

    Posted 20 Nov 2014 Link to this post

    Hello,

    I have kendo scheduler with adaptive rendering and works fine on android and ios browsers if i edit an event by tapping and then save or cancel and editor closed. the scheduler view refreshes without problem. Problem happens when i have a default eventid and i popup edit window using editEvent in scheduler_databound .
    function scheduler_dataBound(e) {      

            var start = kendo.format('{0:d}', this.view().startDate());
            var end = kendo.format('{0:d}', this.view().endDate());
            var rootDir = "@Url.Content("~/")";
            $.ajax({
                url: rootDir + "Scheduler/LoadEventID",
                async: false,
                cache: false,
                timeout: 30000,
                success: function (state) {
                   // alert(state);
                    if (state) {
                        var eventuid;
                        var model = $("#scheduler").data("kendoScheduler").dataSource;
                        var event = model.get(state);
                        $("#scheduler").data("kendoScheduler").editEvent(event);
                       
                    }
                }
            });       
        
        }

    Works fine on desktop browsers. On tablet phone browsers this opens the correct event with all details. But when i save or cancel and edit window is gone there is just a gray area. I do not see the scheduler unless i reload page. If i call scheduler read and refresh that does not help

    Thanks

    Anamika
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 24 Nov 2014 Link to this post

    Hello Anamika,

    I prepared a simple Dojo demo in my attempt to replicate this issue, but to no avail. Could you modify it in order to reproduce the problem? This will help us to review the problem locally and advice you further.

    Regards,
    Georgi Krustev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Anamika
    Anamika avatar
    124 posts
    Member since:
    Mar 2014

    Posted 25 Nov 2014 in reply to Georgi Krustev Link to this post

    Hello,

    My scenario is a little different. I call scheduler controller from another view with id and date and set scheduoler currentview date to the date and in data_bound call editevent. So actually we are not already in schedule screen. tried to modify the dojo smple so that on databound i try to show edit pop up but then do not see the exact problem
    rather check this dojo sample where i took the basic sheduler sample and on databound trying editevent. If you click cancel you do not see scheduler window any more
    http://dojo.telerik.com/iLImO

    Thanks

    Anamika
  5. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 26 Nov 2014 Link to this post

    Hello Anamika,

    Thank you for the repro demo. The main cause of the issue is exactly that you are trying to edit an event on every widget dataBound event. If you would like to edit event once the scheduler is loaded, then you can wire the dataBound only once using the one method:

    $("#scheduler").data("kendoScheduler").one("dataBound", scheduler_dataBound);

    Check the updated demo.

    Regards,
    Georgi Krustev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET MVC is VS 2017 Ready