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

Wrong Typescript definition in kendo.all.d.ts

1 Answer 78 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 30 May 2017, 08:23 AM

Hello,

I just used the TreeView widget and inserted items with the API method 'insertAfter' and 'insertBefore'. Unfortunately the typescript definition of these methods says, it returns void, but actually it returns the new inserted item (which I need at this point). I updated my kendo.all.d.ts file now, but if I will update kendo in the future, it would overwrite these lines. It would be great if you could fix this for the next release.

insertAfter(nodeData: any, referenceNode: JQuery): void;
insertBefore(nodeData: any, referenceNode: JQuery): void;
// to
insertAfter(nodeData: any, referenceNode: JQuery): JQuery;
insertBefore(nodeData: any, referenceNode: JQuery): JQuery;

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 02 Jun 2017, 06:40 AM

Hello Jan,

 

Thank you for reporting that. I have logged it and you can monitor the status of the task here: https://github.com/telerik/kendo-ui-core/issues/3283. Eventually, the update should be included in the next Service Pack. 

 

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