Hello,
I integrated a treeview control with checkboxes and a button in my MVC view. If the button is clicked, all checked items should be processed.
However the array which should contain the id value is always null.
Hopefully somebody can give me an advise what I`am doing wrong :-)...
Partial View:
Home:
I integrated a treeview control with checkboxes and a button in my MVC view. If the button is clicked, all checked items should be processed.
However the array which should contain the id value is always null.
Hopefully somebody can give me an advise what I`am doing wrong :-)...
Partial View:
(Html.Kendo().TreeView()
.Name(
"Treeview"
)
.DataTextField(
"WebName"
)
.Checkboxes(checkBox => checkBox
.CheckChildren(
true
)
.Enabled(
true
)
.Name(
"checkedItems[]"
)
)
.DataSource(dataSource => dataSource
.Model(model => model
.Id(
"WebUrl"
)
.HasChildren(
"HasChildren"
)
)
.Read(read => read
.Action(
"WebsRead"
,
"Home"
)
)
)
)
Home:
public
ActionResult FillGrid(
string
[] checkedItems)
{
//Do something
return
View();
}