Tabstrip Load on Demand demo error

2 posts, 0 answers
  1. Shaun Kayne
    Shaun Kayne avatar
    1 posts
    Member since:
    Apr 2009

    Posted 19 Jan 2010 Link to this post

    I'm experiencing problems whilst dynamically loading user controls into a multipage with a tabstrip. I've looked at your example (http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx) and am doing something similar, however, I have noted that you are experiencing the exact same problem in the demo.
    If you click on the second tab(Products) and right-click on the page to ViewSource, you'll note that the source displayed is actually for the user control on the "Customers" tab and not the user control on the "Products" tab. During normal operation, this shouldn't be a problem, however, if you add javascript into the user control - none of your javascript functions will be found.
    If you remove the RadAjaxManager, you'll notice that everything works as intended ie the right user control is displayed in the ViewSource. The problem is, you get the nasty postback!
    I have tried various things to try rectify the problem without any success.
    Please assist!
  2. Yana
    Admin
    Yana avatar
    5044 posts

    Posted 22 Jan 2010 Link to this post

    Hello Shaun,

    You should place your javascript code inside RadScriptBlock in order to execute javascript code from the user controls.

    Sincerely yours,
    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