Hi,
I have a website with approx 30 pages that I want to load into RadPageViews in a RadMultiPage and select with a RadTabStrip. It would take a long time to load all the PageViews when the site is first loaded (several minutes) so I want to do it 'on demand'. I am using your "Load on Demand" example, except changing the PageViewCreated() to set the .ContentUrl of the PageView to the .aspx of my desired page instead of .Add the UserControl. I create all the Tabs in the PageLoad of the main page and add in the PageViews as each Tab is selected. All seems to work fine except once a PageView is created it gets reloaded every PostBack. I have the java code to stop postbacks when clicking a Tab that already has a PageView but, when you select a 'new' Tab this creates a postback and any already created PageViews appear to be 're-created'. For example, I create one PageView on startup and get the PageViewCreated() event as expected, where I set it's .ContentUrl to Describe.aspx and the PageLoad in Describe.aspx.cs is called. Then I select the next Tab and immediately get a PageViewCreated() for the first PageView and the PageLoad in Describe.aspx.cs is called again and 'IsPostBack' is false, and then I get the TabClick event where I add the next PageView and so on. By the time I've gone to 5 or 6 Tabs all previously created PageViews have to get reloaded each time a new Tab is selected and everything just goes too slow. Is what I'm attempting possible? We were doing the same thing using TabContainers and IFrames and were able to get it to do what we needed but I want to use the Telerik stuff...
Sorry for the long explanation.
I have a website with approx 30 pages that I want to load into RadPageViews in a RadMultiPage and select with a RadTabStrip. It would take a long time to load all the PageViews when the site is first loaded (several minutes) so I want to do it 'on demand'. I am using your "Load on Demand" example, except changing the PageViewCreated() to set the .ContentUrl of the PageView to the .aspx of my desired page instead of .Add the UserControl. I create all the Tabs in the PageLoad of the main page and add in the PageViews as each Tab is selected. All seems to work fine except once a PageView is created it gets reloaded every PostBack. I have the java code to stop postbacks when clicking a Tab that already has a PageView but, when you select a 'new' Tab this creates a postback and any already created PageViews appear to be 're-created'. For example, I create one PageView on startup and get the PageViewCreated() event as expected, where I set it's .ContentUrl to Describe.aspx and the PageLoad in Describe.aspx.cs is called. Then I select the next Tab and immediately get a PageViewCreated() for the first PageView and the PageLoad in Describe.aspx.cs is called again and 'IsPostBack' is false, and then I get the TabClick event where I add the next PageView and so on. By the time I've gone to 5 or 6 Tabs all previously created PageViews have to get reloaded each time a new Tab is selected and everything just goes too slow. Is what I'm attempting possible? We were doing the same thing using TabContainers and IFrames and were able to get it to do what we needed but I want to use the Telerik stuff...
Sorry for the long explanation.