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

<!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>
	<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
	<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
	<!--Uncomment the RadAjaxManager below to use it instead of the RadAjaxPanel
	    (NOTE: You must remove the RadAjaxPanel when using the RadAjaxManager)-->
	<%--<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
	    <AjaxSettings>
	        <telerik:AjaxSetting AjaxControlID="grid1">
	            <UpdatedControls>
	                <telerik:AjaxUpdatedControl ControlID="grid1" LoadingPanelID="loadingpanel1" />
	            </UpdatedControls>
	        </telerik:AjaxSetting>
	    </AjaxSettings>
	</telerik:RadAjaxManager>--%>
	<telerik:RadAjaxLoadingPanel runat="server" ID="loadingpanel1" Skin="Default" />
	<div>
	    <telerik:RadAjaxPanel runat="server" ID="radPanel1" LoadingPanelID="loadingpanel1">
        <telerik:RadGrid runat="server" ID="grid1" AutoGenerateColumns="false"
            OnNeedDataSource="grid1_NeedDataSource" PageSize="10" AllowPaging="true"
            OnDeleteCommand="grid1_DeleteCommand">
            <MasterTableView DataKeyNames="ID">
                <Columns>
                    <telerik:GridBoundColumn DataField="ID" HeaderText="Id" />
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" />
                    <telerik:GridButtonColumn ConfirmText="Do you really want to delete this row?"
                        CommandName="Delete" Text="Delete" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        </telerik:RadAjaxPanel>
	</div>
	</form>
</body>
</html>
