Kendo UI Tip 3 : Destroying Kendo Grid

Sometimes we need to create a div to kendo grid again and again.

Properly destroying a kendo grid is very important to cease any forthcoming UI as well as functionality issue due to any type of remains of previous grid.

Before creating the grid again just destroy the previously created grid and clear it’s wrapper as shown below:

var grid = $(“#divGrid”).data(“kendoGrid”);

if (grid) {

//destroy the previous Grid instance

//clean up the html


Hope this helps 🙂 .


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s