display load in progess on application page
-
10-12-2019 - |
Question
i have an application page called from a webpart with SP.UI.ModalDialog.showModalDialog()
On this page i've an spgridview, 2 textbox for choosing date between and a button. When i click on the button i refresh the grid depending of the date choosed.
I'd like when i click on the button, display "load in progress" till the grid is loaded. Do you know an easy solution to do this? (for information i'm already in a modaldialog and i want displaying this wait message inside)
i tried SP.UI.ModalDialog.showWaitScreenWithNoClose without success because i've an exception on my function that is null or undefined
thanks
Solution
You would essentially have 2 ways to my knowledge, after launching a modal window:
- using the SPLongOperation which in result would show the actual progress bar and a message at the start, tasks executing or the end, example http://sharepointzen.wordpress.com/2012/09/30/using-splongoperation-for-synchronous-long-running-tasks-in-sharepoint/
- or client side using the same operations UI (via SP.UI.Notify.addNotification method) as SharePoint to show side
messages when exposing back running operations, such as in
http://blog.mastykarz.nl/sharepoint-2010-ui-tip-non-obtrusive-progress-messages/
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange