Ajax Manager & Content Pages

6 posts, 0 answers
  1. Lee Brannon
    Lee Brannon avatar
    11 posts
    Member since:
    Jan 2007

    Posted 17 Dec 2009 Link to this post

    I have Master Page I use with certain projects. I add AjaxManager to the a content page and when I configure it shows no controls in the project. I have tried to move the Manager to all the different MasterPage areas with no luck. From what I've read I should be able to run ajax on any controls within the same content area without any problems. I am using AjaxManager v2009.2.826.35. Here is a test sample:

     

     

    <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Login.aspx.vb" Inherits="_Default" title="Untitled Page" %> 
     
     
    <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
     
     
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">  
    </asp:Content> 
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">  
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        &nbsp; &nbsp;&nbsp; &nbsp;<br /> 
        <br /> 
        <telerik:RadDatePicker ID="RadDatePicker1" Runat="server"   
            Culture="English (United States)">  
    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar> 
     
    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton> 
        </telerik:RadDatePicker> 
        <br /> 
        <br /> 
        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"   
            GridLines="None" Width="228px">  
    <MasterTableView AutoGenerateColumns="False" DataKeyNames="ID"   
                DataSourceID="SqlDataSource1">  
    <RowIndicatorColumn> 
    <HeaderStyle Width="20px"></HeaderStyle> 
    </RowIndicatorColumn> 
     
    <ExpandCollapseColumn> 
    <HeaderStyle Width="20px"></HeaderStyle> 
    </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" HeaderText="ID"   
                ReadOnly="True" SortExpression="ID" UniqueName="ID">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="DevDesc" HeaderText="DevDesc"   
                SortExpression="DevDesc" UniqueName="DevDesc">  
            </telerik:GridBoundColumn> 
        </Columns> 
    </MasterTableView> 
        </telerik:RadGrid> 
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"   
            ConnectionString="<%$ ConnectionStrings:SCCSDConnectionString %>"   
            SelectCommand="SELECT [ID], [DevDesc] FROM [tblDevices]">  
        </asp:SqlDataSource> 
        <br /> 
        <telerik:RadAjaxManager runat="server">  
        </telerik:RadAjaxManager> 
    </asp:Content> 

    How do I correct this problem>

  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 17 Dec 2009 Link to this post

    Hello Lee,

    Please examine these articles which demonstrate how RadAjaxManager control should be used in
    master->content page scenario:
    RadAjax and MasterPage
    User Controls/Master pages

    I hope it gets you started properly.

    Kind regards,
    Pavlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Lee Brannon
    Lee Brannon avatar
    11 posts
    Member since:
    Jan 2007

    Posted 17 Dec 2009 Link to this post

    Pavlina,

    Thanks for the quick response. I have looked at those examples before but revisited. In reading about Content Pages I read:

    "...... one can add RadAjaxManager control in any ContentPage. Unfortunately not all possible scenarios can be handled when using RadAjaxManager this way - for example a control in the master page cannot be ajaxified. RadAjaxManager can handle only cases when there controls to ajaxify are beneath in the manager control hierarchy"

    In my test example code I have no controls in anyting but a content page. I am not trying to ajaxify any controls execpt under the AjaxManager within the same content page. When I go to AjaxManager Configuration, it shows no controls listed.

    I did try the RadAjaxManager in the Master Page and RadAjaxManageProxy in the Content Page as the example you sent me listed, with the same result.

    I am just not sure how I should continue from here. I have talked with another developer that says he uses the RADAjaxManager with MasterPages/ContentPages without any problems.

    Thanks for your help,
    Lee

  4. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 17 Dec 2009 Link to this post

    Hi Lee,

    Attached to this message is a simple runnable application which handles the desired functionality. Please examine it and let me know if you need further assistance.

    Regards,
    Pavlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Lee Brannon
    Lee Brannon avatar
    11 posts
    Member since:
    Jan 2007

    Posted 18 Dec 2009 Link to this post

    Pavlina,

    Thanks for sending me the example. I loaded it and it worked fine as it should. I took your code for the ajax and controls and loaded only them into my MasterPage and it was not ajaxified. The controls worked but did not use ajax. Could I send you my master page in a zip and see what could be causing my problem?

    Thanks for your help,

    Lee
  6. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 18 Dec 2009 Link to this post

    Hello Lee,

    You could open a formal support ticket and send us a simple running project demonstrating the problem. In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

    Looking forward for your reply.

    Regards,
    Pavlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top