Reloading/refreshing Kendo Grid

How to reload or refresh a Kendo Grid using Javascript?

It is often required to reload or refresh a grid after sometime or after a user action.


You can use



I never do refresh .


alone works for me all the time.

In a recent project, I had to update the Kendo UI Grid based on some calls, that were happening on some dropdown selects. Here is what I ended up using:

        url: '/api/....',
        data: { myIDSArray: javascriptArrayOfIDs },
        traditional: true,
        success: function(result) {
            searchResults = result;
    }).done(function() {
        var dataSource = new{ data: searchResults });
        var grid = $('#myKendoGrid').data("kendoGrid");;

Hopefully this will save you some time.

If you do not want to have a reference to the grid in the handler, you can use this code:


This will refresh the grid, if there is a refresh button. The button can be enabled like so:

[MVC GRID DECLARATION].Pageable(p=> p.Refresh(true))

Just write below code


What you have to do is just add an event .Events(events => events.Sync("KendoGridRefresh")) in your kendoGrid binding code.No need to write the refresh code in ajax result.

    .DataSource(dataSource => dataSource
    .Model(model => model.Id(m => m.Id))        
    .Events(events => events.Sync("KendoGridRefresh"))    
      .Columns(columns =>
          columns.Bound(c => c.Id).Hidden();              
          columns.Bound(c => c.UserName).Title(@Resources.Resource.lblAddedBy);                           
      }).Events(e => e.DataBound("onRowBound"))
          .ToolBar(toolbar => toolbar.Create().Text(@Resources.Resource.lblNewDocument))
          .HtmlAttributes(new { style = "height:260px" })          

And you can add the following Global function in any of your .js file. so, you can call it for all the kendo grids in your project to refresh the kendoGrid.

function KendoGridRefresh() {
    var grid = $('#document').data('kendoGrid');;

You can use the below lines


For a auto refresh feature have a look here

By using following code it automatically called grid's read method and again fill grid


In my case I had a custom url to go to each time; though the schema of the result would remain the same. I used the following:

var searchResults = null;
        url: http://myhost/context/resource,
        dataType: "json",
        success: function (result, textStatus, jqXHR) {
            //massage results and store in searchResults
            searchResults = massageData(result);
    }).done(function() {
        //Kendo grid stuff
        var dataSource = new{ data: searchResults });
        var grid = $('#doc-list-grid').data('kendoGrid');;

An alternative way to reload the grid is


Need Your Help

x86 MUL Instruction from VS 2008/2010

c++ visual-studio compiler-construction assembly x86

Will modern (2008/2010) incantations of Visual Studio or Visual C++ Express produce x86 MUL instructions (unsigned multiply) in the compiled code? I cannot seem to find or contrive an example wher...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.