Hello am trying to re-initialize jqx window, but it does not work properly.
$("#jqxwindow").jqxWindow({height: 'auto', width: '70%',resizable: false,draggable: false, theme: 'dark', isModal: true, autoOpen: false });
// //on close destroy the jqx window
$('#jqxwindow').on('close', function (event) {
// $('#jqxwindow').jqxWindow('destroy');
$('#jqxwindow').remove();
});
$("#popup").click(function () {
$("#grid").jqxGrid('clearselection');
getselectedrowindexes =null;
selectedRowData =null;
$('#_id').val('');
vm._id ='';
$("#jqxwindow").jqxWindow('open');
});
$("#button_input").click(function () {
var T = $("#text_input").val();
$("#textbox").text(T);
$("#jqxwindow").jqxWindow('close');
});
$("#button_no").click(function () {
$("#jqxwindow").jqxWindow('close');
});
after destroy or remove method, window is not re-Initialized again.