ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
PopupForm opened using js, use custom js function for the cancel button
Title:
B
I
{code}
?
this is how I open the popup form, I would like to be able to use my custom function for the cancel button function openPopupForm(FType, COMAID, COMBID, COMBPDID, PNamme,gridID) { awe.open({ id: 'popup1', type: 'popupForm', title: PNamme, url: '@Url.Action("Flavor_Input", "ProductSelect")', udb: 1, ufd: 1, params: { FType: FType, COMAID: COMAID, COMBID: COMBID, COMBPDID: COMBPDID, PNamme: PNamme }, close: function () { var api = $('#' + gridID).data('api'); api.load({ }) } }); }
Save Changes
Cancel
RayBen
asked 2 months ago
Answers
B
I
{code}
?
you can set `udb: false`, and add your own buttons as shown here: https://demo.aspnetawesome.com/PopupDemo#Open-without-initialization the buttons declaration could look like this: btns: [ { text: 'Ok', ok: 1, // add okbtn class action: function () { $(this).find('form').submit(); } }, { text: 'No', action: function () { $(this).data('api').close(); } }],
Save Changes
Cancel
Omu
answered 2 months ago
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK