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

RadAjaxManager & RadAjaxManagerProxy

1 Answer 84 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
jerry
Top achievements
Rank 1
jerry asked on 22 Dec 2008, 04:36 PM
While using the Telerik Trainer and following the video on the Loading panel and the RadAjaxmanager and proxy I have run into a problem.  I following the video step by step and even retraced my steps but as soon as I created the master page and moved my RadAjaxManager from my contant page to my master page and added the RadAjaxManagerProxy it has started to post back and refresh the screen.  Now when I go to the RadAjaxManagerProxy and go to Configure Ajax Manager there are no controls even though there is within that page and even when it is hard coded with those controls it doesn't see them.  I need to find a solution asap for a work project.

Any suggestions?

Master Page HTML Code
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="TelerikTools.Site1" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Untitled Page</title> 
    <asp:ContentPlaceHolder ID="head" runat="server">  
    </asp:ContentPlaceHolder> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
      </telerik:RadAjaxManager> 
            
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">  
          
            
          
        </asp:ContentPlaceHolder> 
          
      <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"   
      height="75px" InitialDelayTime="10" IsSticky="True" MinDisplayTime="5000"   
      width="75px">  
      <img alt="Loading..." src="RadControls/Ajax/Skins/Default/loading1.gif"   
        style="border:0px;" /><br /> 
      Add Some Text  
    </telerik:RadAjaxLoadingPanel> 
      
    </div> 
    </form> 
</body> 
</html> 


Contant Page HTML
<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="RadAjaxManager.aspx.cs" Inherits="TelerikTools.RadAjaxManager" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<asp:Content ID="Content1" runat=server ContentPlaceHolderID=ContentPlaceHolder1>  
    <div> 
      
      <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">  
      </telerik:RadScriptManager> 
      
    </div> 
    <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True"   
      oncheckedchanged="CheckBox1_CheckedChanged" Text="Check Me" />      
    <asp:Label ID="Label1" runat="server"></asp:Label> 
      
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"   
      DataSourceID="SqlDataSource1" GridLines="None">  
<MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1">  
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
  <Columns> 
    <telerik:GridBoundColumn DataField="STATE_NM" EmptyDataText="&amp;nbsp;"   
      HeaderText="STATE_NM" SortExpression="STATE_NM" UniqueName="STATE_NM">  
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="CITY_NM" EmptyDataText="&amp;nbsp;"   
      HeaderText="CITY_NM" SortExpression="CITY_NM" UniqueName="CITY_NM">  
    </telerik:GridBoundColumn> 
    <telerik:GridBoundColumn DataField="ZIPCODE" EmptyDataText="&amp;nbsp;"   
      HeaderText="ZIPCODE" SortExpression="ZIPCODE" UniqueName="ZIPCODE">  
    </telerik:GridBoundColumn> 
  </Columns> 
  <PagerStyle Mode="NextPrevAndNumeric" /> 
</MasterTableView> 
 
<FilterMenu EnableTheming="True">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
</telerik:RadGrid> 
 
 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"   
      ConnectionString="<%$ ConnectionStrings:ConnectionString %>"   
      ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"   
      SelectCommand="SELECT &quot;STATE_NM&quot;, &quot;CITY_NM&quot;, &quot;ZIPCODE&quot; FROM &quot;TBL_STATECITY_V&quot;">  
    </asp:SqlDataSource> 
 
      
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
      <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="CheckBox1">  
          <UpdatedControls> 
            <telerik:AjaxUpdatedControl ControlID="Label1" /> 
          </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="RadGrid1">  
          <UpdatedControls> 
            <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
          </UpdatedControls> 
        </telerik:AjaxSetting> 
      </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 
      
      
    </asp:Content> 

Contant Page C#
using System;  
using System.Collections;  
using System.Configuration;  
using System.Data;  
using System.Linq;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.HtmlControls;  
using System.Web.UI.WebControls;  
using System.Web.UI.WebControls.WebParts;  
using System.Xml.Linq;  
 
namespace TelerikTools  
{  
  public partial class RadAjaxManager : System.Web.UI.Page  
  {  
    protected void Page_Load(object sender, EventArgs e)  
    {  
 
    }  
 
    protected void CheckBox1_CheckedChanged(object sender, EventArgs e)  
    {  
      System.Threading.Thread.Sleep(1000);  
      if (CheckBox1.Checked)  
      {  
        Label1.Text = "This box is checked";  
      }  
      else 
      {  
        Label1.Text = "The box is NOT checked";  
      }  
    }  
  }  
}  
 


Thank you for any help

Jerry

1 Answer, 1 is accepted

Sort by
0
jerry
Top achievements
Rank 1
answered on 22 Dec 2008, 05:08 PM
Fixed it

I moved the "telerik:RadScriptManager" to the Master Page and removed it from the content page.

Thank You
Jerry
Tags
Ajax
Asked by
jerry
Top achievements
Rank 1
Answers by
jerry
Top achievements
Rank 1
Share this question
or