Forum


15:04

27/07/2009

Is there anyway to make that happen? It would seem easy enough to wrap the call. I made my function synchronous just for that purpose, but if I had a way to enable/show and then disable/hide the Loading/wait display I could do it async easily enough.
I know you can enable/disable the display for ajax datatypes.. but I need it for the function datatype.
Alan
02:41

Moderators
30/10/2007

Hello
There are two element which should be used in this case. They are created during the grid initialization
If your grid has id=mygrid, then additinally two elements are created - one for the message and another for the overlay-
these id are as follow (suppose you have mygrid as id) lui_mygrid and load_mygrid
As in your case the function should maybe look like this
datatype: function (request) {
$("#lui_mygrid, #lui_mygrid").show();
$.ajax({
.....
complete : function(){
....
$("#lui_mygrid, #lui_mygrid").hide();
},
error: function () {
$("#lui_mygrid, #lui_mygrid").hide();
},
....
});
}
Note where the hide() should be applied.
Enjoy
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
02:21

Moderators
30/10/2007

Hello,
Sorry for the typo.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
162 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66