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

Set Checkbox Value

1 Answer 848 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 27 Oct 2016, 03:37 PM

Is there any way to declare the value of a checkbox? Currently the value is always 'true'.

<input name="AppleYN" class="k-checkbox form-control" id="AppleYN" type="checkbox" value="true">

I would like to specify the values for check box lists:

<input name="AppleYN" class="k-checkbox form-control" id="AppleYN" type="checkbox" value="21">

<input name="BananaYN" class="k-checkbox form-control" id="BananaYN" type="checkbox" value="22">

<input name="OrangeYN" class="k-checkbox form-control" id="OrangleYN" type="checkbox" value="23">

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 31 Oct 2016, 07:37 AM
Hello Daniel,

I am not sure if I correctly understand you requirement. Generally, the input value is defined via its value attribute and the Kendo UI specific classes just style the inputs.

You may also find useful the following article which is related to binding radiobuttons in an MVC scenario - http://docs.telerik.com/kendo-ui/aspnet-mvc/helpers/radiobutton/overview

Regards,
Danail Vasilev
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Tags
General Discussions
Asked by
Daniel
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or