My web app uses several radWindows that return a parameter to the parent window via a callback JS function. These work fine, but I'd like to improve the current behavior with error trapping code that can close the form before the entire ASPX page is sent to the browser.
In the ASPX pages displayed by the radWindow, I'd like to start trapping for session time-out and other conditions within the page_load event. To optimize performace, I'd like to use Response.Write (or Response.WriteFile) to send a custom response (simple HTML form + JS) to the browser that gracefully closes the window, bypassing the load of ASPX page content. This approach will be much faster than injecting JS into the ASPX page via RegisterStartupScript (or similar method) that invovles the normal ASPX page lifecycle.
But in order to write a custom response to the browser, I need to ensure the response page includes the necessary Telerik JS libraries that let me (a) close the radWindow and (b) return a value to the parent page.
Can you tell me how to do this? Are there a set of core Telerik JS libraries that I need to include? Ideally, I can continue using JS functions such as GetRadWindow() in order to close the form, such as:
var currentWindow = GetRadWindow();
currentWindow.argument = arg;