This is a migrated thread and some comments may be shown as answers.

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

0 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 27 Nov 2017, 11:07 PM

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();

 

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Share this question
or