Afficher la charge en cours sur la page d'application
-
10-12-2019 - |
Question
J'ai une page d'application appelée d'un webpart avec Sp.ui.modaldialog.showmodaldialog ()
Sur cette page, j'ai une zone de texte SpgridView, 2 Textbox pour choisir la date entre et un bouton. Lorsque je clique sur le bouton, je rafraîchis la grille en fonction de la date choisie.
Je voudrais quand je clique sur le bouton, affichez "Charger en cours" jusqu'à ce que la grille soit chargée. Connaissez-vous une solution facile pour faire cela? (Pour plus d'informations, je suis déjà dans un modaldialog et je veux afficher ce message d'attente à l'intérieur)
J'ai essayé sp.ui.modaldialog.showwaitscreenwithnoclose sans succès car j'ai une exception sur ma fonction nulle ou indéfinie
merci
La 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/