This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to supply the model for the first request (to save one Ajax request):
Controller:
View:
However, the "Command" column is not rendered properly.
Is this a bug or this approach is not supported?
I'm trying to supply the model for the first request (to save one Ajax request):
Controller:
public ActionResult Index(){ return View(orders);}[GridAction]public ActionResult _Select(){ return View(new GridModel(orders));}View:
@model IEnumerable<Sample.Models.Order>@( Html.Telerik().Grid<Sample.Models.Order>(Model) .Name("grid") .DataBinding(binding => binding.Ajax() .Select("_Select", "Home").Update("_Update", "Home").Delete("_Delete", "Home")) .DataKeys(keys => keys.Add(o => o.ID)) .BindTo(Model) .Columns(columns => { // // columns // columns.Command(commands => { commands.Edit().ButtonType(GridButtonType.ImageAndText); commands.Delete().ButtonType(GridButtonType.ImageAndText); }).Width(200);However, the "Command" column is not rendered properly.
Is this a bug or this approach is not supported?