How to detect Kendo Grid MVC initial binding on controller

2 posts, 0 answers
  1. Luciano Kaesemodel
    Luciano Kaesemodel avatar
    29 posts
    Member since:
    Apr 2007

    Posted 30 Oct 2014 Link to this post

    I have a Kendo grid :        

    @(Html.Kendo().Grid<MyVm>().Name("grid").Columns(columns =>
        .DataSource(dataSource => dataSource
                .Model(model => model.Id(p => p.Id))
                .Read(read => read.Action("List", "MyController", new { id = Model.Id }).Type(HttpVerbs.Get)))

    On my controller I have :   

    public JsonResult List([DataSourceRequest] DataSourceRequest request, int id)
             //if (FIRST/INITIAL LOADING) ?????

    How can I check on controller if its the initial loading/binding?

  2. Nikolay Rusev
    Nikolay Rusev avatar
    2289 posts

    Posted 03 Nov 2014 Link to this post

    Hello Luciano,

    There isn't a way of detecting whether this is the first request of the Grid whiting the controller. This controller method can also be requested from other parts of the application.

    Nikolay Rusev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top