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

Kendo Grid with MVC - Work locally after first load rather calling server call on every change

1 Answer 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 05 Apr 2013, 03:05 PM
Hi,
Please see my code
It is calling every change rather work locally.
@(Html.Kendo().Grid<iFacilitiesDemo.Models.sp_Result>()
        //@(Html.Kendo().Grid<iFacilitiesDemo.Models.Task>()
    .Name("Grid")
             .BindTo((IEnumerable<iFacilitiesDemo.Models.sp_Result>)ViewBag.Products)
    .Columns(columns =>
    {
        //columns.Bound(p => p.Building);
        columns.Bound(p => p.Job_No);
        columns.Bound(p => p.Company);
        columns.Bound(p => p.Status);
        columns.Bound(p => p.Manager);
        columns.Bound(p => p.Client);
    })
    .Groupable()
    .Pageable(pager => pager
            .Input(true)
            .Numeric(true)
            .Info(true)
            .PreviousNext(true)
            .Refresh(true)
            .PageSizes(true)
            )
    .Sortable()
    .Scrollable()
    .Filterable()
 )

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 08 Apr 2013, 01:26 PM
Hi Ravi,


The server operations of the Grid dataSource are enabled by default. To override this behavior, you should specify the ServerOperation(false) option.
E.g.
.DataSource(dataSource => dataSource
    .Ajax()
    .ServerOperation(false)
    ...
)

Wish you a great day!

 

All the best,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Ravi
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or