TypeScript definitions and interface DropDownListOptions template property

2 posts, 0 answers
  1. Brad
    Brad avatar
    2 posts
    Member since:
    Aug 2011

    Posted 19 Jun 2013 Link to this post

    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.
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 24 Jun 2013 Link to this post

    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!
Back to Top