Setting Filterable="true on DropDownList throws an exception

2 Answers 22 Views
DropDownList
Simon
Top achievements
Rank 1
Iron
Simon asked on 14 Jun 2021, 01:15 PM

Hello,

When I add the tag Filterable="true" to my DropDownList I get the following exception when I try to click on the dropdown:

" Could not find 'TelerikBlazor.initDropDownListFilter' ('initDropDownListFilter' was undefined)."

The project build without a problem but the error occurs when I click the dropdown. Am I missing a using statement or what could be the problem?

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 14 Jun 2021, 08:28 PM

Hello Simon,

Try following the bullets and ideas from this article: https://docs.telerik.com/blazor-ui/troubleshooting/js-errors. I suspect that the JS Interop file your app uses is either the wrong version, or cached by the browser and dev server.

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Simon
Top achievements
Rank 1
Iron
answered on 15 Jun 2021, 09:32 AM | edited on 15 Jun 2021, 09:33 AM

Emptying the cache removed the warning but the DropDownList is still looking weird in every browser. 

screenshot

Any idea why?

Marin Bratanov
Telerik team
commented on 15 Jun 2021, 05:21 PM

It looks like the Telerik Theme is not registered properly, see the following article on how that should look: https://docs.telerik.com/blazor-ui/themes/overview. There may also be other stylesheets interfering (custom themes, more than one theme, project specific rules) that you may have to remove or fix (e.g., ensure there is only one Telerik Theme registered, regenerate a custom theme from scratch and ensure it is based on the SASS themes we have).
Tags
DropDownList
Asked by
Simon
Top achievements
Rank 1
Iron
Answers by
Marin Bratanov
Telerik team
Simon
Top achievements
Rank 1
Iron
Share this question
or