0

Has anyone used vue.js with Telerik UI for ASP.Net MVC? Not the Kendo UI controls?

Specifically looking for examples on using v-bind and v-model with the controls.

for example a checkbox

@Html.Kendo.Checkbox().Name()

I'd like to bind the name and set the checked and such like I've done for a standard html checkbox

type="checkbox" v-bind:id="thePlan.Id"    class="plan-selection" v-bind:checked="thePlan.IsSelected" v-model="thePlan.IsSelected"

Has anyone done something like this?

1 Answer 1

1

You can add all HTML attributes you need using new Dictionary<string, object> in HtmlAttributes.

Like this:

@Html.Kendo().CheckBox().Name("checkBox").HtmlAttributes(new Dictionary<string, object> { { "class", "plan-selection" }, { "v-bind:id", "thePlan.Id" } })
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.