Kendo RadioButtonBuilder does not contain a definition for 'Size'

53 views Asked by At

At my company we use Kendo for all our UI components. We don't have a ton of Radio Buttons and I was told they want to make them smaller, however, when I try to add the .Size (as according to the docs)

@(Html.Kendo().RadioButton().Name("radioBtn1").Checked(varChecked ?? false).HtmlAttributes(new { @name = "radioBtn1" }).Label("Label").Size(ComponentSize.Large))

I get this error Error CS1061 'RadioButtonBuilder' does not contain a definition for 'Size' and no accessible extension method 'Size' accepting a first argument of type 'RadioButtonBuilder' could be found (are you missing a using directive or an assembly reference?) and this error Error CS0103 The name 'ComponentSize' does not exist in the current context

Does anyone have any ideas?

These are the nuget packages related to Telerik that I have installed in the project:

  • Telerik.Reporting version 14.0.20.115
  • Telerik.ReportViewer.Mvc version 14.0.20.115

Thank you!

I tried reading the docs from Telerik and I submitted a support question to them, but haven't been able to figure out why this isn't working for me.

0

There are 0 answers