Thursday 21 July 2022

clear kendo grid in jQuery

 How to clear kendo grid  using jQuery? 


Hello everyone, I am going to share the code sample for clear kendo ui grid. Here are basically two ways,  one is  destroy kendo grid and  other one is set data source blank.

// RESET KENDO UI GRID
$('#kendoGrid').data().kendoGrid.destroy();
$('#kendoGrid').empty();

OR


$("#kendoGrid").data("kendoGrid").dataSource.data([]);

No comments:

Post a Comment