Forum Post: Re: New Ui - How To Intercept Form Submission (quick Create) ?

  • Thread starter Thread starter Meryk
  • Start date Start date
Status
Not open for further replies.
M

Meryk

Guest
Hi Siraj, Thank you for the reply, this is actually achieving what I needed. Now the issue I am having, is that when the validation is all good, I need to open a popup asking the user for other information .. But it looks like the popup does not have time to open, i.e, after the validation is done, the QC page juste closes without opening the popup. It was opening properly when I was calling it on click on Save. Here is the code : function onSubmitHandler() { var formDetails = rb.newui.page.PageContext.getFormDetails(rb.newui.util.EDIT_FORM_NAME); if (formDetails) { var validator = formDetails.getKendoValidator(); if (validator && validator.validate()) { alert('all good'); dialogWindow.data("kendoWindow").center().open(); // where dialog window is defined before } else{ alert('something is wrong'); } } } // definition of dialog window $(document).ready(function(){ var dialogWindow = $("#dialog").kendoWindow({ actions: {}, draggable: true, height: "300px", modal: true, resizable: false, title: "Hello", width: "500px", visible: false /*don't show it yet*/ }); }); // end of document.ready Can you help with that please? Thanks, Meryem

Continue reading...
 
Status
Not open for further replies.
Back
Top