QUESTION
Can anyone suggest how a loading image can be displayed until a gridview is fully loaded?
This gridview is to be rendered on page
From your code :
$(function() {
$.ajax({
type: "POST",
url: "Default.aspx/UpdateGV",
data: "{}",
contentType: "application/json",
dataType: "json",
success: function() {
// Run return method.
},
// add these lines
beforeSend:function {
//this will show your image loader
$("$Loader").css("display","block");
},
complete:function {
//this will hide your image loader provided that you give an id named Loader to your image
$("$Loader").css("display","none");
}
});
});