ButtonBuilder does not contain a definition for ThemeColor

1 Answer 399 Views
Button General Discussions Installer and VS Extensions
Daniel
Top achievements
Rank 3
Iron
Iron
Iron
Daniel asked on 28 Jan 2022, 10:19 AM | edited on 28 Jan 2022, 02:19 PM

Hey guys,

I have a problem with my HtmlHelper. My ButtonBuilder does not contain a definition for ThemeColor (like described on your demo page here). Funny is that my KendoLoader does have that. Any suggestions (see my picture)?

I had that error with the Kendo Release R3 2021 and currently I've updated to the current last version (2022.1.119) through Progress Control Panel and still it is.

FYI: @using Kendo.Mvc.UI is in my _ViewImports included. There is no change when I implement that code line into my current view.

@(Html.Kendo().Loader()
                    .Name("loaderDropDown")
                    .Size(LoaderSize.Medium)
                    .ThemeColor(LoaderThemeColor.Dark)
                    .Type(LoaderType.InfiniteSpinner)
                    .Visible(false)
                )
                @(Html.Kendo().Button()
                    .Name("btnEditPrivacy")
                    .Icon("edit")
                    .HtmlAttributes(new { style = "min-width: 27px;", title = "Datenschutzerklärung bearbeiten" })
                    .ThemeColor(ThemeColor.Primary)
                )

 

Edit:
Alright guys, it was my fault. I forgot to update my telerik nuget package. Now it's working! Thanks anyways!

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Top achievements
Rank 3
Iron
Iron
Iron
answered on 01 Feb 2022, 09:26 AM
Alright guys, it was my fault. I forgot to update my telerik nuget package. Now it's working! Thanks anyways!
Patrick | Technical Support Engineer, Senior
Telerik team
commented on 01 Feb 2022, 04:50 PM

Thanks for the follow-up, and glad after updating the Telerik NuGet package all is working well!  
Tags
Button General Discussions Installer and VS Extensions
Asked by
Daniel
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Daniel
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or