You need to use the "show" or "hide" functions, see the code below as an example -
>
$(function() {
$("#popupContainer").dxPopup({
title: "Popup Title",
contentTemplate: function () {
return $("<p />").text("Popup content");
}
});
$("#showButton").dxButton({
text: "Show the Popup",
onClick: function () {
$("#popupContainer").dxPopup("show");
$("#popupContainer").dxPopup("toggle", true);
}
});
$("#hideButton").dxButton({
text: "Hide the Popup",
onClick: function () {
$("#popupContainer").dxPopup("hide");
$("#popupContainer").dxPopup("toggle", false);
}
});
});