Thanks.
One more question, the code you share works fine, but I have a radnumerictextbox with autopostback=true. Without your code, the loading image shows(before) and hides(after) the postback, but with your code the images shows(before) and it still shows(after) the postback.
Can you help please?
This is the code for the panel loading:
The javascript code is: