This is a migrated thread and some comments may be shown as answers.

Kendo Grid footerTemplate doesn't disappears when destroy the grid

1 Answer 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris Thierry
Top achievements
Rank 1
Chris Thierry asked on 01 Jul 2015, 09:04 PM
I'm using kendo ui 2013 Q3, I have a grid that is using footerTemplate and groupFooterTemplate. Everything is good until I destroy the grid to generate new data, the grid is destroyed but the footerTemplate stays there on the grid. My question is: is there anything extra I need to do to completely destroy the grid when I'm using footerTemplate ?

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 03 Jul 2015, 12:42 PM
Hi Chris,

The widget's destroy method does not detach any elements from the DOM, so my advice is to do that manually. For example: 
$("#recreateGrid").click(function() {
  $("#grid").data("kendoGrid").destroy();
  $("#grid").empty();
  createGrid();
});

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Chris Thierry
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or