Anzeige Last in Bearbeitung auf Anwendungsseite anzeigen
-
10-12-2019 - |
Frage
Ich habe eine Anwendungsseite von einem WebPart mit Sp.ui.modaldialog.showmodaldialog ()
Auf dieser Seite habe ich eine spgridview, 2 textbox zum Wählen des Datums zwischen und einer Taste. Wenn ich auf die Schaltfläche klicke, erfrischen Sie das Gitter, abhängig von dem ausgewählten Termin.
Ich möchte, wenn ich auf die Schaltfläche klicke, "Last in Begriff" anzeige, bis das Gitter geladen ist. Kennen Sie eine einfache Lösung dafür? (Für Informationen, die ich bereits in einem Modaldiag habe, und ich möchte diese Wartenachricht innen anzeigen)
Ich habe SP.UI.Modaldialog.showwaitscreenwithnoclose ohne Erfolg ausprobiert, weil ich eine Ausnahme auf meiner Funktion, die null oder nicht definiert ist
danke
Lösung
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/