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

TypeScript definitions and interface DropDownListOptions template property

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 20 Jun 2013, 03:32 AM
I download the new 0.9 Typescript definition file from the forum and it fixed the 0.9 compatibility issues.  However, it also brought back and error I had manually fixed but forgot to put a post about with the older version.  The interface DropDownListOptions defined the template property as

 template?: string;

But this does not work with  kendo.template function which returns a function.  Changing it to the following worked. 

template?: any; 

However, I think the following is more correct and also works.

(data: any) => string

Just looking through the file there seems to be some other places where I think this is wrong too.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 24 Jun 2013, 06:40 AM
Hello Brad,

 Thank you for reporting this issue. We have made the template option to support a function as well. The fix will appear in our next internal build which is due by the end of this week.

Regards,
Atanas Korchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Brad
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or