This question is locked. New answers and comments are not allowed.
Recently i upgraded the Telerik MVC version from 2011.1.315.235 to 2012.1.419.235
I am using Telerik Grid in my page and i am using Inline edit for that grid.
In older version( 2011.1.315.235 ) i am able to get the readonly columns in Controller method during update,but i am not able to get the readonly column property in model in this newer version(2012.1.419.235).ReadOnly/Visible(false) properties not get updated in model during update.
Please suggest me a solution.
My controller Code is here
My View Code is here
I am using Telerik Grid in my page and i am using Inline edit for that grid.
In older version( 2011.1.315.235 ) i am able to get the readonly columns in Controller method during update,but i am not able to get the readonly column property in model in this newer version(2012.1.419.235).ReadOnly/Visible(false) properties not get updated in model during update.
Please suggest me a solution.
My controller Code is here
[AcceptVerbs(HttpVerbs.Post)]
[GridAction]
public ActionResult DataUpdate(Model model, string filter)
{
//Update Code
}My View Code is here
<%Html.Telerik().Grid<xxxx>()
.Name("grd")
.DataKeys(keys =>
{
keys.Add(model => model.Id);
})
.ClientEvents(e => {
e.OnEdit("onEdit");
e.OnError("onError");
})
.DataBinding(binding =>
binding.Ajax()
.Select("DataList", "XController")
.Update("DataUpdate", "<span style="font-size: 14px; ">XController</span>"))
.Columns(columns =>
columns.Command(commands =>
{
commands.Edit().ButtonType(GridButtonType.BareImage);
}).Title(string.Empty).Width(50).HtmlAttributes(new { @style = "vertical-align: top !important;" });
columns.Bound(model => model.Id).Visible(false);
columns.Bound(model => model.Year).Filterable(true).ReadOnly().Width(50).HtmlAttributes(new { @style = "vertical-align: top !important;" });
columns.Bound(model => model.Name).Filterable(true).ReadOnly().Width(150).HtmlAttributes(new { @style = "vertical-align: top !important;" });
})
.Editable(editing => editing.Mode(Telerik.Web.Mvc.UI.GridEditMode.InLine))
.HtmlAttributes(new { @style = "width: 800px !important; style: block !important;", @class = "t-borderless" })
.Sortable()
.Filterable()
.Pageable(ps =>{
ps.PageSize(10);
ps.Style(GridPagerStyles.Numeric | GridPagerStyles.PageSizeDropDown);
ps.Enabled(true);
})
.Scrollable(scrolling => scrolling.Height(400))
.Render();
%>