Hi,
I am using KendoUI Grid in ASP.NET MVC3 Application and using MvcContrib.Mvc3-ci.3.0.73.0 for portable view. Everything in the grid working perfect. But having problem when I add "Batch Editing" feature. My error screen showing message like this:
The best overloaded method match for 'Kendo.Mvc.UI.Fluent.GridEditingSettingsBuilder<KendoGridMvcCodeFirst.Models.Customer>.Mode(Kendo.Mvc.UI.GridEditMode)' has some invalid arguments
I guess the issue is related to MvcContrib, because same code works in my another test application. My view page code look like this:
@(Html.Kendo().Grid<KendoGridMvcCodeFirst.Models.Customer>()
.Name("Customers")
.ToolBar(tb => tb.Create())
.Editable(editable => editable.Mode(GridEditMode.InCell))
.Pageable()
.DataSource(dataSource => dataSource.Ajax()
.Batch(true)
.Model(model => model.Id(c => c.CustomerID))
.Read("GetCustomers", "Home")
.Update("UpdateCustomer", "Home")
.Create("InsertCustomer", "Home")
.Destroy("DeleteCustomer", "Home"))
.Columns(cols =>
{
cols.Bound(c => c.CustomerID).EditorTemplateName("Integer");
cols.Bound(c => c.Name).Width(300);
cols.Bound(c => c.Phone);
cols.Bound(c => c.Email);
cols.Command(cmd =>
{
cmd.Edit();
cmd.Destroy();
});
})
)
Please help.
Thanks,
ARIF
I am using KendoUI Grid in ASP.NET MVC3 Application and using MvcContrib.Mvc3-ci.3.0.73.0 for portable view. Everything in the grid working perfect. But having problem when I add "Batch Editing" feature. My error screen showing message like this:
The best overloaded method match for 'Kendo.Mvc.UI.Fluent.GridEditingSettingsBuilder<KendoGridMvcCodeFirst.Models.Customer>.Mode(Kendo.Mvc.UI.GridEditMode)' has some invalid arguments
I guess the issue is related to MvcContrib, because same code works in my another test application. My view page code look like this:
@(Html.Kendo().Grid<KendoGridMvcCodeFirst.Models.Customer>()
.Name("Customers")
.ToolBar(tb => tb.Create())
.Editable(editable => editable.Mode(GridEditMode.InCell))
.Pageable()
.DataSource(dataSource => dataSource.Ajax()
.Batch(true)
.Model(model => model.Id(c => c.CustomerID))
.Read("GetCustomers", "Home")
.Update("UpdateCustomer", "Home")
.Create("InsertCustomer", "Home")
.Destroy("DeleteCustomer", "Home"))
.Columns(cols =>
{
cols.Bound(c => c.CustomerID).EditorTemplateName("Integer");
cols.Bound(c => c.Name).Width(300);
cols.Bound(c => c.Phone);
cols.Bound(c => c.Email);
cols.Command(cmd =>
{
cmd.Edit();
cmd.Destroy();
});
})
)
Please help.
Thanks,
ARIF