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

RadMenu does full postback when used with MasterPage & RadAjaxManager

1 Answer 122 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 18 Apr 2011, 05:34 PM
Hi,

I'm using a RadMenu tied to a RadSiteMapDataSource.  I'm also using a RadAjaxManger on the MasterPage with ProxyManagers on the content pages.

How do I configure the RadMenu/RadAjaxManager so that I don't get a full postback everytime the user selects a new menu item?

My MasterPage:

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="AssetTracker.Master.cs" Inherits="AssetTracker.Site1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <link rel="Stylesheet" href="~/StyleSheets/Stylesheet1.css" type="text/css" media="screen"/>   
    <%--the below stylesheet is to allow telerik elements, such as the radsplitter to occupy 100% of the space--%>
    <style type="text/css"
    html,body,form 
    {       
       height: 100%; 
       margin: 0px; 
       padding: 0px; 
    
    </style>
</head>
<body class="mainBackground">       
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>   
    <div>               
        <telerik:RadSiteMapDataSource ID="RadSiteMapDataSource1" runat="server" SiteMapProvider="XmlSiteMapProvider"
            ShowStartingNode="false"/>
               
        <telerik:RadMenu ID="RadMenu1" runat="server" EnableRoundedCorners="true" EnableShadows="true"
            DataSourceID="RadSiteMapDataSource1" Width="100%">
        </telerik:RadMenu>
        <div class="miniMenuBar">
            <uc1:FacilitySelection ID="uxMasterPageFacilitySelection" runat="server" />
        </div>
        <div id="fadeoutDiv">
        <asp:Panel runat="server" ID="uxInfoPanel" CssClass="neutralStyle" EnableViewState="false">               
            <asp:Label CssClass="neutralStyle" runat="server" ID="uxInfo" Text=" " EnableViewState="false"></asp:Label>                                 
             
        </asp:Panel>        
        </div>          
        </div>
        <div class="bodyStyle">           
            <asp:ContentPlaceHolder ID="body" runat="server" />
        </div>
         
               <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
           <ajaxsettings>
                
               <telerik:AjaxSetting AjaxControlID="RadMenu1">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="body" />
                   </UpdatedControls>
               </telerik:AjaxSetting>
               <telerik:AjaxSetting AjaxControlID="uxInfoPanel">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="uxInfoPanel" />
                   </UpdatedControls>
               </telerik:AjaxSetting>
           </ajaxsettings>
         
        </telerik:RadAjaxManager>
     
    </form>
</body>
</html>

Thanks,

Jason

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 21 Apr 2011, 03:53 PM
Hello Jason,

If you have the NavigateUrl property populated for the menu items, then clicking on a menu item causes navigation to another page. In this case using RadAjaxManager is not applicable.


All the best,
Peter
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Menu
Asked by
Jason
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or