What's the javascript equivalent of MasterTableView.IsItemInserted =False

1 posts, 0 answers
  1. Paul
    Paul avatar
    7 posts
    Member since:
    Jun 2014

    Posted 27 Nov 2017 Link to this post

    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.




Back to Top