This is a migrated thread and some comments may be shown as answers.

[Solved] Bulk update in telerik grid

0 Answers 6 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Izhar
Top achievements
Rank 1
Izhar asked on 20 Apr 2013, 11:18 AM
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...
Tags
Grid
Asked by
Izhar
Top achievements
Rank 1
Share this question
or