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

Timeline destroy() fails when the datasource is empty

1 Answer 123 Views
Timeline
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 15 Oct 2020, 07:48 PM

This works fine when the datasource has at least 1 record. It also works fine with the grid control, so I assume this is a glitch with the timeline? I am one revision behind the latest, so this may already be fixed.

kendoTimeline = $("#divTimeLine").kendoTimeline({
        orientation: "horizontal",
        dateFormat: "MM/dd/yyyy",
        dataSource: {
            data: new Array(),
            pageSize: 0,
            sort: { field: "date", dir: "asc" }
        },
    }).data("kendoTimeline");

    kendoTimeline.destroy();

--------------------------

JavaScript Error: Uncaught TypeError: Cannot read property 'destroy' of undefined
URL: http://localhost/SINet/STERLING/AllPoints/PublicScripts/kendoui.2020.2.617.commercial/js/kendo.all.min.js
Line Number: 94

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 19 Oct 2020, 02:47 PM

Hello Jim,

 

I was able to reproduce the described issue with the following sample:
https://dojo.telerik.com/Esoxaxek/5 

It seems that this is a bug and I will log it in our system for fixing.

Thank you for bringing this issue to our attention. I've updated your Telerik points as a token of gratitude.

 

Regards,
Eyup
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Tags
Timeline
Asked by
Jim
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or