I've done some server side validation on Insert, and then called the confirmation box
RadWindowManager1.RadConfirm("Are you sure?", "confirmInsertCallBackFn", 330, 100, null, "System Alert");
So on my client side I can cancel the user response ...
function confirmInsertCallBackFn(arg) {
if (arg) {
$find("<%=RadGrid1.ClientID%>").get_masterTableView().fireCommand("InitInsert", "");
### NEED TO CLOSE THE INSERT FORM ###
}
}
The only issue is that the the Insert form doesn't close when the RadConfirm is OK. What is the java script equivalent of "RadGrid1.MasterTableView.IsItemInserted =False" in order to close the Insert form.
I found general guidance here, but the cancelInsert() call actually cancels the Insert altogether and closes the insert form, rather than just close the form.
https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/client-side-programming/gridtableview-object/methods/cancelinsert
$find("<%=RadGrid1.ClientID%>").get_masterTableView().cancelInsert();