I also have a button on the page, that opens the RadWindow via client-side javascript -- on the buttons onclientClick event I'm calling OpenRadWindow()
function
OpenRadWindow()
{
var radWindow = GetRadWindowManager().GetWindowByName( 'rwAddItem');
radWindow.Show();
}
I have the RadWindow control set to ReloadOnShow = false and , so it isn't attempting to reload the page again when I show it. I've also set ShowContentDuringLoad to true on the RadWindow control. Both have provided no improvement.
When the parent's gridView has a small amount of data it shows just fine. But in cases where I have many more rows in the grid, and I click the button to show the radwindow, it is VERY VERY SLOW. But since i'm doing this all client-side, no server side postbacks, shouldn't this all be relatively quick.
The contents of the window, when loaded in a standard browser window load just fine, so I just don't understand why it would load so slowly based on teh content of the parent page.
Thanks!
Debbie
5 Answers, 1 is accepted
My only suggestion would be to try using just a RadWindow control instead of a RadWindowManager (unless there's a reason you need the manager). If you do need the manager, you could still access the RadWindow directly:
var objRadWindow = $find("<%= rwAddItem.ClientID %>");
objRadWindow.show();
You could also try adding a RadScriptManager and a RadStyleSheetManager to the page if you haven't already.
Hope that helps,
Shaun.
Shaun, you know us so well :)
Debbie, can you please let me know if this happen in debug mode or in production? Generally speaking when compilation debug is set to true, the framework outputs a lot of client debug code that could cause problems similar to the one that you experience. Try setting debug to false and see how your application behaves.
Best wishes,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I just wanted to add the following as a great resource, just in case you haven't read it already:
http://telerikwatch.com/2008/05/optimization-tips-testing-page.html
There's alot of great tips in there that would be a great starting point.
Shaun.
Since you state that your application is complex and setting a test project would be problematic, I have 2 suggestions for you:
1. Set ShowContentDuringLoad = true for the RadWindowManager.
For large pages such as yours this property can make a visible difference.
2. In case this does not make a notable difference, please make the same test with a regular IFRAME - and see whether it behaves the same.
E.g. instead of RadWindowManager, add an IFRAME to your page.
Add a button which, when clicked, will load the slow-loading page into the iframe using simple javascript, e.g.
<button onclick="document.getElementById('testIframe').src='SlowLoadingPage.aspx';return false;">Click me</button>
Of course, the best option would be (as already mentioned) if someone could send us a sample project that demonstrates the difference in loading time in RadWindow and out of RadWindow - so that we can test properly on our end.
Best regards,
Tervel
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.