Effectively I want when I do an AJAX call to the server, I want the page to be "frozen" and no one to be able to do anything while it's loading until it's complete, how do I accomplish that with this control?
Hi,
I did not notice a "hack" in your codes. The setTemplate was designed exactly for similar usage. I guess, you may add "z-index:100000;" to the style of your div. In this case it will painted above any element which has z-index less than 100000.
Ahh, well what I effectively wanted to do was to save the entire page from being posted back, using AJAX, over the network (save WAN traffice) as some of our offices (on our secure WAN) are in remote locations with very small amounts of bandwidth. I had tried to use the Microsoft AJAX toolkit with the infragistics controls and it didn't work so well, so I found your WARP control which I was hoping to fill the need. Only thing missing from the Infragistics toolkit is the "Update Progress" panel which gives a "please wait" screen while it continues to do the AJAX call.
I figured out a way to "trick" the system into working the way I wanted, although it's a bit of a hack, code listed below. It's kind of an extention of the ability to change the graphic that is played during the AJAX call. Only problem is any pull downs and other controls show on top of the DIV, if anyone has some other thoughts or potential ways I could make this work better please let me know!
oPanel.fixPI = function(pi){pi._rc = document.body;pi.setLocation(ig_Location.TopLeft);pi.setTemplate("<div style='background-image:url(/images/wait_background.gif);height: expression(document.body.clientHeight);WIDTH=expression(document.body.clientWidth);'><center><br><BR><BR><BR><BR>Please wait, working..<br><br><img src='/images/wait.gif'></center></div>");}
As far as I understand the purpose of WARP,- is to keep page alive while response is coming. If you do not want that, then you should remove WARP from application.