This is a migrated thread and some comments may be shown as answers.

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

3 Answers 139 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Anamika
Top achievements
Rank 1
Anamika asked on 20 Nov 2014, 10:56 AM
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

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 24 Nov 2014, 10:04 AM
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.

 
0
Anamika
Top achievements
Rank 1
answered on 25 Nov 2014, 10:30 AM
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
0
Georgi Krustev
Telerik team
answered on 26 Nov 2014, 03:17 PM
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.

 
Tags
Scheduler
Asked by
Anamika
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Anamika
Top achievements
Rank 1
Share this question
or