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

Kendo UI Batch Editing Error in MvcConrib Portable area project

0 Answers 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ariful
Top achievements
Rank 1
Ariful asked on 13 Oct 2012, 04:11 PM
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

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Ariful
Top achievements
Rank 1
Share this question
or