Hi,
I have a WARP object on my webpage that displays an Excel file based on the selected values in a couple of dropdowns, which are outside of the WARP. When the user changes the value in one of the dropdowns, I would like to be able to check if the WARP is still refreshing, and if it is, to stop the refresh.
How would I do this?
Hello,
I think this could be possible through using the CSOM (Client Side Object Model) of WARP. It is documented here:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/WebAsyncRefreshPanel_Client_Side_Events.html
The idea is to hook both RefreshRequest and RefreshComplete events and set a global javascript variable bool flag in RefreshRequest to true, and then set it back to false in RefreshComplete. This way, when the flag is true you will now that refresh is not complete yet.
Oh, I just forgot to add that you can cancel the resfresh in the RefreshRequest event - in the CSOM link I sent in the previous post, there is sample code how you can do that - basically, when the flag is true in RefreshRequest, you can cancel the subsequent request.