I have a staff page with a button "Add to groups"
When add to groups is clicked, a kendo window is opened. I can get all my checkboxes to display fine in this window, I just need to save the results back into the model or something similar, to get access to them in my controller so that I can save to database.
Any way to do this using kendo methods?
Code for the popup window below
@(Html.Kendo().PanelBar()
.Name("panelbar")
.ExpandMode(PanelBarExpandMode.Single)
.HtmlAttributes(new { style = "width:300px" })
.Items(panelbar =>
{
panelbar.Add().Text("Search")
.Expanded(true)
.Content(@<div style="padding: 10px;">
<div>
<input class="k-autocomplete" type="text" name="search">
</div>
</div>);
panelbar.Add().Text("Name")
.Expanded(true)
.Content(@<div style="padding: 10px;">
@foreach (var Name in Model.groups) {
<div class="filterBox">
<input type="checkbox" name="@Name.Name" > @Name.Name
</div>
}
</div>);
})
)
When add to groups is clicked, a kendo window is opened. I can get all my checkboxes to display fine in this window, I just need to save the results back into the model or something similar, to get access to them in my controller so that I can save to database.
Any way to do this using kendo methods?
Code for the popup window below
@(Html.Kendo().PanelBar()
.Name("panelbar")
.ExpandMode(PanelBarExpandMode.Single)
.HtmlAttributes(new { style = "width:300px" })
.Items(panelbar =>
{
panelbar.Add().Text("Search")
.Expanded(true)
.Content(@<div style="padding: 10px;">
<div>
<input class="k-autocomplete" type="text" name="search">
</div>
</div>);
panelbar.Add().Text("Name")
.Expanded(true)
.Content(@<div style="padding: 10px;">
@foreach (var Name in Model.groups) {
<div class="filterBox">
<input type="checkbox" name="@Name.Name" > @Name.Name
</div>
}
</div>);
})
)