Kendo Chrome Linter Unknown option (kendoDropDownList)

2 posts, 0 answers
  1. Morten
    Morten avatar
    345 posts
    Member since:
    Jul 2012

    Posted 17 Oct 2014 Link to this post

    My code runs without errors, however when I run the Kendo Linter in Chrome (great tool btw), I get the message:

    Unknown option: CountryName

    which refers to the "optionLabel: { CountryName" in the following code:

    $("#recent-country-filter").kendoDropDownList({
        dataTextField: "CountryName",
        dataValueField: "CountryId",
        dataSource: countryDs,
        value: "1",
        optionLabel: {
            CountryName: "Any country",
            CountryId: "0"
        },

    Just curious. Is the code not correct?
  2. Mihai
    Admin
    Mihai avatar
    153 posts

    Posted 17 Oct 2014 Link to this post

    Hi,

    That warning is noise, please ignore it.  Our linter relies on the API docs, and since no content is defined in the docs for the optionLabel it wrongfully thinks that the passed option is invalid.  We should probably handle manually some exceptions in a future version...

    Regards,
    Mihai
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top