How to Put Up a Wait Dialog While The Grid is Performing an Ajax Callback

canSearchSubmit event "/>


If you Grid does a callback that takes some time (e.g. searching a large database), you might want to put up a custom 'working...' message.

This example shows how you can do this for a search, but there are client side events that would enable you to put up custom messages for many different types of actions, including sorting, page navigation, saving data, etc.

Put this in the canSearchSubmit event

var title = "Searching...";
var message = "Please wait while we search for the records.";
var buttons = "none";
var onClose = function () {};, message, buttons, onClose);

Put this in the afterSearchSubmit event


See Also