Open harshmsp opened 9 years ago
Have you tried using the follwing to destroy the old gridster, set a new one and get its handle?
$('.gridster >ul').data("gridster").destroy(); // destroy
var newGridster = $('.gridster >ul').html(newTemplateHtml).gridster().data("gridster"); // re-create
Hello All, I need to bind gridster list dynamically. Means there are list of template and I am binding through gridster ul with below statements. var cTemplateHtml = (List of all Li with data-row,data-column and data-sizex,data-sizey field $('.gridster >ul').html(cTemplateHtml);
Now I just want to confirm as if user select another template then first I need to remove all widgets or if I am remove gridster html with '' then it works ?
Please help