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


  • "spgridview, 2 textbox and a button" are they in a visual webpart.? Commented Feb 17, 2014 at 5:25

1 Answer 1


You would essentially have 2 ways to my knowledge, after launching a modal window:

  • thanks for your proposition but for the first one, i don't want to redirect to an other url (just display a loading during th eprocess) For the second I get Microsoft JScript runtime error: Unable to get value of the property 'ShowWaitMessage': object is null or undefined
    – bender
    Commented Feb 16, 2014 at 16:45
  • Or you could simply put your GridView within a UpdatePanel which would then enable you to use UpdateProgress controls to handle loading operations. Commented Feb 17, 2014 at 19:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.