Pierre-Luc
Top achievements
Rank 1
Pierre-Luc
asked on 10 Apr 2009, 01:19 AM
Hello Telerik Team,
I'm developing my web-app based on RadTabStrip/MultiPage load on demand pageviews. I was happy with the end-result until I realised that each time I click a tab, ALL the pageviews are reloaded, which means ALL the User Controls are reloaded too, which is not good!
Also, I can't use the RenderSelectedPageOnly option on MultiPage cause I cancel ajax requests for tabs whose corresponding pageviews have been loaded.
So, the desired behavior is :
1) Load the user controls on demand, so I can navigate through them without doing unnecessary postback.
2) When I click on a tab which is not already loaded, I just want his appropriate pageview loaded, keeping the others pageviews unaffected.
Is it possible to do that? If so, How can I modify your online demo to achieve the desired behavior?
Thanks in advance!
Pierre-Luc
I'm developing my web-app based on RadTabStrip/MultiPage load on demand pageviews. I was happy with the end-result until I realised that each time I click a tab, ALL the pageviews are reloaded, which means ALL the User Controls are reloaded too, which is not good!
Also, I can't use the RenderSelectedPageOnly option on MultiPage cause I cancel ajax requests for tabs whose corresponding pageviews have been loaded.
So, the desired behavior is :
1) Load the user controls on demand, so I can navigate through them without doing unnecessary postback.
2) When I click on a tab which is not already loaded, I just want his appropriate pageview loaded, keeping the others pageviews unaffected.
Is it possible to do that? If so, How can I modify your online demo to achieve the desired behavior?
Thanks in advance!
Pierre-Luc
5 Answers, 1 is accepted
0
Hi Pierre-Luc,
Our Load on Demand RadPageView example works exactly as you have described it. Please take a look at it and let us know if you have other questions and/or problems.
All the best,
Paul
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Our Load on Demand RadPageView example works exactly as you have described it. Please take a look at it and let us know if you have other questions and/or problems.
All the best,
Paul
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Pierre-Luc
Top achievements
Rank 1
answered on 13 Apr 2009, 05:24 PM
Well, let me explain exactly the problem that I'm facing.
Let's say I'm running my web-app with ten tabs loaded. So, with the care of RadTabStrip/MultiPage load on demand pageviews, I can navigate between these ten tabs without causing postback to the server, right? BUT, what if I, in one of my tab, want to do a simple ajax async-postback initiated by one of the ten usercontrols? Well, for this simple ajax request, and based on the MultiPage, the server will have to recreate ALL the ten user controls, and just after that, treating my ajax request. It's by the way too slow and not acceptable
I think you can better understand my problem now. The fact that I have to reload all the usercontrols simply to execute a simple ajax request, wich normally take a matter of a second, and now take about 5-10 seconds, is certainly not a desired behavior.
I perhaps find a "solution" to that problem, which is by using a PlaceHolder to hold the usercontrols instead of a RadMultiPage, but by taking this path I loose the Load on Demand benefit on the client...
Do you know a better alternative?
Thanks again!
Pierre-Luc
Let's say I'm running my web-app with ten tabs loaded. So, with the care of RadTabStrip/MultiPage load on demand pageviews, I can navigate between these ten tabs without causing postback to the server, right? BUT, what if I, in one of my tab, want to do a simple ajax async-postback initiated by one of the ten usercontrols? Well, for this simple ajax request, and based on the MultiPage, the server will have to recreate ALL the ten user controls, and just after that, treating my ajax request. It's by the way too slow and not acceptable
I think you can better understand my problem now. The fact that I have to reload all the usercontrols simply to execute a simple ajax request, wich normally take a matter of a second, and now take about 5-10 seconds, is certainly not a desired behavior.
I perhaps find a "solution" to that problem, which is by using a PlaceHolder to hold the usercontrols instead of a RadMultiPage, but by taking this path I loose the Load on Demand benefit on the client...
Do you know a better alternative?
Thanks again!
Pierre-Luc
0
Hi Pierre-Luc,
I think this was already discussed in this forum post.
Sincerely yours,
Paul
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I think this was already discussed in this forum post.
Sincerely yours,
Paul
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Zeke Sheppard
Top achievements
Rank 1
answered on 21 Jan 2010, 05:22 PM
Greetings:
I am using a RadTabStrip on a user control and this example does not appear to be working. Specifically, the client side 'onTabSelecting' is not found.
Any suggestions to get this to work on aan .ascx?
I am using a RadTabStrip on a user control and this example does not appear to be working. Specifically, the client side 'onTabSelecting' is not found.
Any suggestions to get this to work on aan .ascx?
0
Hi Zeke Sheppard,
You should place your javascript functions inside RadScriptBlock as it's explained here.
Kind regards,
Yana
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You should place your javascript functions inside RadScriptBlock as it's explained here.
Kind regards,
Yana
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.