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

Kendo Chrome Linter Unknown option (kendoDropDownList)

1 Answer 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Morten asked on 17 Oct 2014, 09:44 AM
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?

1 Answer, 1 is accepted

Sort by
0
Mihai
Telerik team
answered on 17 Oct 2014, 10:45 AM
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!
 
Tags
General Discussions
Asked by
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Mihai
Telerik team
Share this question
or