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

I am not able to close the event popup after one appointment event creation

5 Answers 61 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Nayeem
Top achievements
Rank 1
Nayeem asked on 24 Oct 2013, 01:12 PM
Hello Team,

I am not able to close the event popup after I successfully create an event from KendoUI Scheduler.
Below is the error which I am able to see in firebug :

TypeError: e is undefined

Please guide... how to resolve this.

5 Answers, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 25 Oct 2013, 06:24 AM
Hi,

I tried to reproduce the problem locally with the Edit event but to no avail – everything is working as expected on our side. Could you please provide runable project where the issue is reproduced? This would help us pinpoint the exact reason for this 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!
0
Christian
Top achievements
Rank 1
answered on 21 Jan 2018, 09:34 PM

Hi there,

I experienced the same issue here: TypeError: e is undefined. Is there a solution yet for this problem?

 

The following are the steps we did to reproduce the problem:

1. Scheduler month view

2. Click one of the cell and filled the start and end date (same date for both fields)

3. Click the save button. (At this point, before clicking the save button, the cancel button and close button of the dialog box worked normally).

4. Click the other cell to make another allocation (same date for start and end date fields)

5. Click the close button or cancel button, and the console log would produce this error: TypeError: e is undefined  (The save button was function as normal).

 

We noticed that the error is originated from the following part of Kendo JS code:

 function C(e, t) {
            return t ? A(e, function(e) {               
                return e.uid && e.uid == t.uid || e[t.idField] === t.id && t.id !== t._defaultId
            }) : -1
        }

Strangely, when the close and cancel button worked normally, this part of the code wasn't ran at all. We checked it by implementing a console.log() inside the function of above code.

 

Inside our custom js file (version 2017.3.1026), for the scheduler we only pick the following:

- Scheduler Month View

- Scheduler adaptive  rendering

- Timezones

 

For the implementation we use the MVC form of the component, with the following code:

@(Html.Kendo().Scheduler<RequestDateViewModel>()
        .Name("scheduler")
        .Views(views => { views.MonthView(monthView => monthView.Selected(true)); })
    )

 

Hope these information are sufficient for you...

Thanks for your help.

 

Regards,

 

Christian H. E.

0
Neli
Telerik team
answered on 23 Jan 2018, 01:55 PM
Hi Christian,

I have tested locally in MVC project with both versions - our latest 2018.1.117 and 2017.3.1026, but I did not manage to reproduce the issue.
The behavior at my end is demonstrated in the linked below screencasts. 
(screencast version 2018.1.117)
(screencast version 2017.3.1026)

Could you please modify the linked Dojo example or the attached sample project in order to replicate the issue. This way we run it locally and assist you further.

Regards,
Neli
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Christian
Top achievements
Rank 1
answered on 23 Jan 2018, 08:44 PM

Hi Neli,

Thanks for the reply. One thing that we just found is that this happen if our scheduler element is loaded into a dialog box type component through Ajax.

We did try to load the scheduler into the page without Ajax (e.g. load it into the page on page load) and it works fine. However we still need this to be work through Ajax due to our UI requirement.

Perhaps this can help you replicate the issue.

 

Cheers,

 

Christian H. E.

0
Ianko
Telerik team
answered on 25 Jan 2018, 12:50 PM

Hello Christian,

Loading the Scheduler through AJAX can be implemented with more that one way and every one approach is quite specific. Can you please provide a simple, locally runnable project that shows the difficulties you encounter so that we can examine it? 

If you are unable to provide a project in a public forum thread, you can consider opening a support ticket and attach the project to your message so that we can take a look at it.

Regards,
Ianko
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Scheduler
Asked by
Nayeem
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Christian
Top achievements
Rank 1
Neli
Telerik team
Ianko
Telerik team
Share this question
or