if ($("#grid").data("kendoGrid") != undefined) { $('#grid').data().kendoGrid.destroy(); $('#grid').empty(); }