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

Description

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 () {};

A5.msgBox.show(title, message, buttons, onClose);

Put this in the afterSearchSubmit event

A5.msgBox.hide();

See Also