Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Loading/wait display with function datatype..
12/08/2009
15:04
Avatar
descsuit
Member
Members
Forum Posts: 16
Member Since:
27/07/2009
sp_UserOfflineSmall Offline

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

13/08/2009
02:41
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

13/08/2009
15:05
Avatar
descsuit
Member
Members
Forum Posts: 16
Member Since:
27/07/2009
sp_UserOfflineSmall Offline

Thanks a lot!

You have a typo in there but I figured it out from there.  (the second and fourth lui_mygrid should be load_mygrid.

Alan

15/08/2009
02:21
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

23/10/2009
18:33
Avatar
A. Soong
Guest
Guests

Sweet!  I thought I inadvertently blew something up when I converted my grids to use webmethods in my code behind.  Thanks!

Just a side question - was the animation left out on purpose or will it be added back in with the next release?

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information