This question is locked. New answers and comments are not allowed.
Hi,
I want to edit the master data on one click of button.
I have one text box and one drop down list in telerik grid. User can change the text and selection for all record in one time and once he click on save button all data should be save in one shot. Below is the View Code.
Html.Telerik().Grid(Model)
.Name("PeopleGrid")
.DataKeys(keys => keys.Add(m => m.Id))
.Columns(columns =>
{
columns.Template(
@<text>
@Html.TextBox("txtName", (item.Name))
</text>);
columns.Template(
@<text>
@Html.DropDownList("id", new SelectList(ViewBag.HairColors, item.HairColor), new { Class = "ddlStyle", onchange = "SelectedIndexChanged()" })
</text>
).Width(120);
})
.Render();
Data is showing correctly on view but when we submit in Modal value become null in controller.
Thanks in advance...
I want to edit the master data on one click of button.
I have one text box and one drop down list in telerik grid. User can change the text and selection for all record in one time and once he click on save button all data should be save in one shot. Below is the View Code.
Html.Telerik().Grid(Model)
.Name("PeopleGrid")
.DataKeys(keys => keys.Add(m => m.Id))
.Columns(columns =>
{
columns.Template(
@<text>
@Html.TextBox("txtName", (item.Name))
</text>);
columns.Template(
@<text>
@Html.DropDownList("id", new SelectList(ViewBag.HairColors, item.HairColor), new { Class = "ddlStyle", onchange = "SelectedIndexChanged()" })
</text>
).Width(120);
})
.Render();
Data is showing correctly on view but when we submit in Modal value become null in controller.
Thanks in advance...