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

radmultipage and radtabstrip refresh all page on postback in content page

1 Answer 266 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Davide
Top achievements
Rank 1
Davide asked on 10 Nov 2012, 11:26 AM
I have the following example code in content page:


...
<script>
 function pbBtn1() {
         __doPostBack("button1", "")
     }
      
    </script>
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server" >
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
     <AjaxSettings>
 
 
        <telerik:AjaxSetting AjaxControlID="button1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rts"
                        LoadingPanelID="RadAjaxLoadingPanel3" />
                    <telerik:AjaxUpdatedControl ControlID="rmp" LoadingPanelID="RadAjaxLoadingPanel3" />
                </UpdatedControls>
        </telerik:AjaxSetting>
 
 
               </AjaxSettings>
</telerik:RadAjaxManager>
    
    
   <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel3" runat="server" />
    
        <div class="mainContent_bg" >
            
            <div class="mainContentContainerContent">
                
               <div class="spessore10"></div>              
                    <br />
                     <br />
                  <div id="xls">
                            <telerik:RadTabStrip ID="rts" runat="server" MultiPageID="rmp" OnClientTabSelected="pbBtn1">
                            <Tabs>
                            <telerik:RadTab Text="page1" selected="true" PageViewID="page1"></telerik:RadTab>
                            <telerik:RadTab Text="page2" selected="false" PageViewID="page2"></telerik:RadTab>
                            </Tabs>
                            </telerik:RadTabStrip>
                            <telerik:RadMultiPage ID="rmp" runat="server">
                                <telerik:RadPageView runat=server ID="page1" Selected=true BorderColor="Black" Height=500 BackColor="Gray">
                                 <asp:Label ID=lb1 runat=server  Text="Label1 base"></asp:Label>
                                 <br />
                                  
                                </telerik:RadPageView>
                                <telerik:RadPageView runat=server ID="page2" BorderColor="Black" Height=500 BackColor="Gray">
                                    <asp:Label ID=lb2 runat=server  Text="Label2 base"></asp:Label>
                                   <br />
                                    <br />
                                     
                                </telerik:RadPageView>
                            </telerik:RadMultiPage>
                  </div>            
  
                  <telerik:radButton ID="button1" runat="server"  Text=button1 />
                  <asp:Button ID="button2" runat="server"  OnClientClick="pbBtn1()" Text=button2  />
 
For my project I need to refresh only radTabStrip e radmultipge when I do button1 postback ... if I write this code in aspx page without masterpage it works. m
I also try to write radscriptManager on masterpage and to use radAjaxManagerProxy in content page but it does not work.
What  I do wrong? 

Thanks,

Davide

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 15 Nov 2012, 07:31 AM
Hello Davide,

Please note that the mentioned controls are more specific for ajaxification and should be included in the AjaxSettings of the manager as demonstrated in the following topic:
http://www.telerik.com/help/aspnet-ajax/ajax-tips-and-tricks.html

You are correct about using the RadAjaxManagerProxy in the content page. RadScriptManager, as well as the RadAjaxManager, should be placed in the Master Page:
http://www.telerik.com/help/aspnet-ajax/ajax-masterpage.html

I hope this will prove helpful.

Greetings,
Eyup
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.
Tags
Ajax
Asked by
Davide
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or