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

Muiltipage client load user control

3 Answers 75 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
xie yufei
Top achievements
Rank 1
xie yufei asked on 09 Jun 2010, 03:38 PM
I create tabstrip and multipage with js.how to trigger the pageview created event on server side or load the user control on client side?
 function openLink(linkName, linkValue) {  
            var tabStrip = $find("<%= RadTabStrip1.ClientID %>");  
            var multiPage = $find("<%= RadMultiPage1.ClientID %>");  
 
            tabStrip.trackChanges();  
            multiPage.trackChanges();  
 
            var tab = new Telerik.Web.UI.RadTab();  
            tab.set_text(linkName);  
            tab.set_value(linkValue);  
            tabStrip.get_tabs().add(tab);  
            AttachCloseImage(tab, "../Images/close.gif");  
              
            var page = new Telerik.Web.UI.RadPageView();  
            page.set_id(linkValue);  
            multiPage.get_pageViews().add(page);  
 
            tab.set_pageViewID(linkValue);  
              
            tabStrip.commitChanges();  
            multiPage.commitChanges();  
 
        }  
 

3 Answers, 1 is accepted

Sort by
0
Sachin
Top achievements
Rank 1
answered on 12 Oct 2011, 10:14 AM
is there any solution to the mentioned problem?
0
Dimitar Terziev
Telerik team
answered on 16 Oct 2011, 08:45 AM
Hi Sachin,

When the pageviews are created client-side you couldn't force the server-side PageViewCreated to be fired at the time of their creation. In case you use the trackChanges and commitChanges methods to persist these newly create pageview on the server, the PageViewCreated will be fired when you make a post-back.

Loading User Controls on the client is not supported by the .NET framework itself. This is due to the fact that the user control is a server control by nature and it should be initialized on the server.

Best wishes,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Sachin
Top achievements
Rank 1
answered on 17 Oct 2011, 01:39 PM
Thanks! Dimitar
Tags
TabStrip
Asked by
xie yufei
Top achievements
Rank 1
Answers by
Sachin
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or