automatic establishment checked (checkbox)

0 Answers 85 Views
Checkbox
Вадим
Top achievements
Rank 1
Iron
Iron
Вадим asked on 11 Jan 2022, 08:29 PM

a model is returned to the form in which parameter "Raion" bool has a value of true or false.
How to make it so that CheckBox itself takes the required value?

@(Html.Kendo().CheckBox().Name("Raion").Label("Выезд на район"))

public class ServiceViewModel
    {
*****
        public bool Raion { set; get; }
****
    }
@model service.Models.ServiceViewModel

@(Html.Kendo().CheckBox().Name("Raion").Label("Выезд на район"))




No answers yet. Maybe you can help?

Tags
Checkbox
Asked by
Вадим
Top achievements
Rank 1
Iron
Iron
Share this question
or