DevD
DevD

Reputation: 165

JQGrid : Delay in "dataurl" need to be notified

I have a JQGrid with one of cells as a "select" edit type. Data in this cell comes from "dataurl".

While adding a new row/editing an existing row, retrieval of data for "select" cell takes around 40 to 50 seconds. The delay is not an issue but during that time I need to show a Loading message on the Grid or into the "select" cell.

Any suggestions ?

Upvotes: 1

Views: 204

Answers (1)

Oleg
Oleg

Reputation: 221997

One can use ajaxSelectOptions option to customize jQuery.ajax request used to get data from dataUrl. For example you can use beforeSend callback to do some actions before Ajax request, you can add error callback, set timeout option which specify the timeout of Ajax request in milliseconds and so on.

To show the "Loading..." message on the grid you need just show the div optionally with overlay. The answer) and another one describes in details how it can be done.

Upvotes: 1

Related Questions