This is a migrated thread and some comments may be shown as answers.

Tabstrip Load on Demand demo error

1 Answer 30 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Shaun Kayne
Top achievements
Rank 1
Shaun Kayne asked on 19 Jan 2010, 11:34 PM
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!

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 22 Jan 2010, 08:04 AM
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.
Tags
TabStrip
Asked by
Shaun Kayne
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or