Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

CheckBoxList Form Component

$
0
0
Hi there,I am trying to develope custom checkbox list form component for form builder. However, i am stuck with one problem that checkbox is not checked and having problem of autopostback.Below is the checkboxlist in form builder and live site. In live site, checkbox is not checked.Where am i getting wrong, or how do I go about building custom multiselect form component.@a target='_blank' href='https://imgbb.com/'@html center imageMy partialview code is as follows:@model FormComponents.CheckBoxListComponent @{ foreach (var item in Model.Items) { @Html.CheckBoxFor(m => item.Selected) @Html.DisplayFor(m => item.Text) } } Thanks in advance

Viewing all articles
Browse latest Browse all 8901

Trending Articles