clear kendo grid in jQuery

clear kendo grid in 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([]);


ANIL SINGH

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - http://www.code-sample.com and http://www.code-sample.xyz
My Books - Google Amazon and Flipkart Book Store!

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.