instead of allowing my users to close a modal dialog by selecting the close [x] box in the windows title bar (just beside the min max buttons), i would like them to click on my form specific Cancel button.
in my online search, i found something like this:
the accepted answer to that issue in the above link was this:
I found this to be a good solution
$("#myDialogID").dialog({
closeOnEscape: false,
beforeClose: function (event, ui) { return false; },
dialogClass: "noclose"
});
Not altering the existing styles, instead adding a new bit:
.noclose .ui-dialog-titlebar-close
{
display:none;
}
Adding the class ended up being quite an elegant method, as i'm "classing" the dialog as one that cannot be closed.
for radzen blazor, what might be the recommended approach?
i'm ok if i can just disable that [x]
thanks for helping