there is a form.Added element DropDownTree. When you click on the confirmation, you need to get the value in the controller Category. Preferably in the format string []. Tell me how you can get values, even in a different format.Thank you.
<form asp-action="CreateService" asp-controller="ServiceSubmit" asp-antiforgery="true" data-ajax="true" data-ajax-method="post" data-ajax-update="#result_login_register" >
<input name="IsValid" type="hidden" value="@ViewData.ModelState.IsValid.ToString()" />
<div class="form-group">
<label asp-for="Name">Краткое название</label>
<input asp-for="Name" class="form-control" />
<span asp-validation-for="Name" class="text-danger"></span>
</div>
<div class="form-group">
<label>Категория</label>
@(Html.Kendo().DropDownTree()
.Name("Category")
.DataTextField("Category")
.HtmlAttributes(new { style = "width: 100%" })
.AutoClose(false)
.Checkboxes(checkboxes => checkboxes
.Name("checkedFiles")
.CheckChildren(true)
)
.DataSource(dataSource => dataSource
.Model(model => model
.Id("IdCategory")
.HasChildren("HasChildren")
)
.Read(read => read
.Action("CategoryPodServic_Read", "ServiceSubmit")
).ServerFiltering(false)
)
)
@*<span asp-validation-for="Category.CategoryPod" class="text-danger"></span>*@
</div>
<div class="form-group">
<input asp-for="Raion" class="form-check-input" type="checkbox" value="" id="Raion">
<label class="form-check-label" for="Raion">
Выезд на район
</label>
</div>
<div class="form-group">
<label asp-for="Description">Описание</label>
@(Html.Kendo().Editor()
.Name("Description")
.HtmlAttributes(new { style = "width: 100%; height:400px" })
.Tools(tools => tools
.Clear()
.Bold().Italic().Underline()
.JustifyLeft().JustifyCenter().JustifyRight()
.InsertUnorderedList().InsertOrderedList()
)
)
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<button class="btn btn-success" type="submit" >Сохранить</button>
</form>