Muiltipage client load user control

4 posts, 0 answers
  1. xie yufei
    xie yufei avatar
    14 posts
    Member since:
    Sep 2009

    Posted 09 Jun 2010 Link to this post

    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();  
     
            }  
     
  2. Sachin
    Sachin avatar
    3 posts
    Member since:
    Mar 2011

    Posted 12 Oct 2011 Link to this post

    is there any solution to the mentioned problem?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 16 Oct 2011 Link to this post

    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
  5. Sachin
    Sachin avatar
    3 posts
    Member since:
    Mar 2011

    Posted 17 Oct 2011 Link to this post

    Thanks! Dimitar
Back to Top