Telerik AJAX NOT working Masterpage/Contentpage

2 posts, 0 answers
  1. Tim
    Tim avatar
    3 posts
    Member since:
    Jul 2008

    Posted 22 Mar 2011 Link to this post

    Can you explain why the content page continues to blink and why the telerik controls do not work as advertised?

    Site Master:

    <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="TelerikAjaxStandard.Site1" %>

    <!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></title>
        <asp:ContentPlaceHolder ID="head" runat="server">
        </asp:ContentPlaceHolder>
    </head>
    <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <div>
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
           
            </asp:ContentPlaceHolder>
        </div>
        </form>
    </body>
    </html>



    Content Page:

    <%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WebContentForm1.aspx.cs" Inherits="TelerikAjaxStandard.WebContentForm1" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

       
    <telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
        <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>       
           
        </AjaxSettings>
       
    </telerik:RadAjaxManagerProxy>

        <telerik:RadGrid ID="RadGrid1" runat="server"
                         DataSourceID="SqlDataSource_Course" GridLines="None"
                         Width="400px"
                         AutoGenerateColumns="False">

            <MasterTableView DataSourceID="SqlDataSource_Course" DataKeyNames="CourseID">
           
                <Columns>
                    <telerik:GridBoundColumn UniqueName="Title" DataField="Title" HeaderText="Title" />
                    <telerik:GridBoundColumn UniqueName="Credits" DataField="Credits" HeaderText="Credits" />                                
                </Columns>
                   
            </MasterTableView>
           
            <ClientSettings EnablePostBackOnRowClick="true">
                <Selecting AllowRowSelect="true" />
            </ClientSettings>
           
        </telerik:RadGrid>
       

       
        <asp:SqlDataSource ID="SqlDataSource_Course" runat="server"
            ConnectionString="<%$ ConnectionStrings:SchoolConnectionString %>"
            SelectCommand="SELECT [Title], [Credits], [CourseID] FROM [Course] ORDER BY [Title]"></asp:SqlDataSource>
           
    </asp:Content>

  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 24 Mar 2011 Link to this post

    Hi Tim,

    Please find attached to this message a simple working project which handles the desired functionality. Give it a try and let me know if it helps.

    Regards,
    Pavlina
    the Telerik team
Back to Top