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

<%@ 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>
    <link href="TestSkin/Input.TestSkin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadCodeBlock ID="rcb" runat="server">

            <script type="text/javascript">    
                   
             function getEditForm()
             {
             
             var idReal = $get("id");
             var edotFormTextBox = $get(idReal.value);
             edotFormTextBox.disabled=true;
             }
         
            </script>

        </telerik:RadCodeBlock>
        <asp:ScriptManager runat="server" ID="ScriptManager1">
        </asp:ScriptManager>
        <br />
        <br />
        
        <asp:Label runat="server" ID="Test" Text="Test" onclick="getEditForm()" >
        </asp:Label>
        <input type="hidden" runat="server" id="id" />
                
        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="AccessDataSource1" GridLines="None" 
        OnItemDataBound="RadGrid1_ItemDataBound">
            <MasterTableView CommandItemDisplay="Top"
             AutoGenerateColumns="False" DataKeyNames="CustomerID" DataSourceID="AccessDataSource1">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                
                <telerik:GridEditCommandColumn>
                </telerik:GridEditCommandColumn>
                
                    <telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID"
                        SortExpression="CustomerID" UniqueName="CustomerID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CompanyName" HeaderText="CompanyName" SortExpression="CompanyName"
                        UniqueName="CompanyName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ContactName" HeaderText="ContactName" SortExpression="ContactName"
                        UniqueName="ContactName">
                    </telerik:GridBoundColumn>                    
                                 
                </Columns>
                <EditFormSettings>
                    <EditColumn UniqueName="EditCommandColumn1">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <FilterMenu EnableTheming="True">
                <CollapseAnimation Duration="200" Type="OutQuint" />
            </FilterMenu>
        </telerik:RadGrid>
        
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Nwind.mdb"
            SelectCommand="SELECT TOP 10 [CustomerID], [CompanyName], [ContactName] FROM [Customers]">
        </asp:AccessDataSource>
        
         <asp:AccessDataSource ID="AccessDataSource2" runat="server" DataFile="~/App_Data/Nwind.mdb"
            SelectCommand="SELECT Distinct [OrderID], [CustomerID] FROM [Orders] WHERE ([CustomerID] = ?)">
             <SelectParameters>                
             <asp:Parameter />
             </SelectParameters>
        </asp:AccessDataSource>



    </form>
</body>
</html>
