RadTabStrip Load on Demand scenario

6 posts, 0 answers
  1. Pierre-Luc
    Pierre-Luc avatar
    5 posts
    Member since:
    Jan 2009

    Posted 09 Apr 2009 Link to this post

    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
  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 13 Apr 2009 Link to this post

    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.
  3. Pierre-Luc
    Pierre-Luc avatar
    5 posts
    Member since:
    Jan 2009

    Posted 13 Apr 2009 Link to this post

    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
  4. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 15 Apr 2009 Link to this post

    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.
  5. Zeke Sheppard
    Zeke Sheppard avatar
    32 posts
    Member since:
    Oct 2009

    Posted 21 Jan 2010 Link to this post

    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?
  6. Yana
    Admin
    Yana avatar
    5044 posts

    Posted 22 Jan 2010 Link to this post

    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.
Back to Top