<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
</head>
<body>
    <form id="mainForm" runat="server">
    <asp:ScriptManager runat="server" ID="ScriptManager1">
    </asp:ScriptManager>
    <p>
        Declarative DataSource control</p>
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AllowPaging="true">
        <MasterTableView DataSourceID="SqlDataSource1">
        </MasterTableView>
    </telerik:RadGrid>
    <br />
    <asp:SqlDataSource ID="SqlDataSource1" SelectCommand="SELECT * FROM Customers" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        runat="server"></asp:SqlDataSource>
    <p>
        NeedDataSource event</p>
    <telerik:RadGrid ID="RadGrid2" runat="server" AllowPaging="true" 
        onneeddatasource="RadGrid2_NeedDataSource">
    </telerik:RadGrid>
    <br />
    </form>
</body>
</html>
