ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Display Waiting cursor, on Popup OK submit
Title:
B
I
{code}
?
I use grid. When I want to create a new record, the Create Window appear. When I click on OK, I would like to make appear a "Waiting cursor" during the time the creation job is done into my SQL database (Post action completes). How to do that ? Thanks.
Save Changes
Cancel
Alain Rime
asked at 04 Mar 2016
Answers
B
I
{code}
?
UPDATE: this is now implemented in our demo, see this link: https://demo.aspnetawesome.com/FormDemo#Post-form-via-ajax-and-pass-result-to-Success-js-function click the "delay" checkbox before submitting the form --- it can be done, here's an example that reuses the css and html from the grid custom loading demo: $(function(){ $(document).on('submit', function(e) { var popup = $(e.target).closest('.awe-popup'); setTimeout(function () { if (popup.length && popup.is(':visible')) { var h = popup.outerHeight(true); var spin = $('<div class="spinCont"><div class="spinner"><div class="dot1"></div><div class="dot2"></div></div></div>').height(h); spin.children().first().css('margin-top', (h / 2 - 50) + 'px'); popup.append(spin); } }, 100); }); }); you need to have the css from main demo's common.css used here: http://demo.aspnetawesome.com/GridNoRecordsFoundCustomLoadingDemo
Save Changes
Cancel
Omu
answered at 04 Mar 2016
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