or
RadGridExpensesLines_InsertCommand(
protected
void RadGridExpensesLines_InsertCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
if (e.CommandName == RadGrid.PerformInsertCommandName)
{
GridEditFormInsertItem editedItem = e.Item as GridEditFormInsertItem;
PurchaseInvoiceLine purchaseline = new PurchaseInvoiceLine();
purchaseline.ArticleName = (editedItem.FindControl(
"RadTextBoxArticleName") as TextBox).Text;
<
asp:Button ID="ButtonInsert" Text="Insert" runat="server" CommandName="PerformInsert" Visible="true"></asp:Button>
I tried also with
protected
void RadGridExpensesLines_ItemCommand(object sender, GridCommandEventArgs e)
but any success!!!!
Please someone can tell me why can not access to my controls on the template?
Please really need a help!
Attached = ((System.Web.UI.WebControls.CheckBox)BaysGrid.SelectedItems[0].FindControl("bgAttached")).Checked;Attached = ((System.Web.UI.WebControls.CheckBox)(BaysGrid.MasterTableView.GetSelectedItems()[0].Controls[0].Controls[0])).Checked;Attached = ((System.Web.UI.WebControls.CheckBox)(BaysGrid.MasterTableView.GetSelectedItems()[0].FindControl("bgAttached"))).Checked;Attached = Convert.ToBoolean(BaysGrid.SelectedItems[0].Cells[5].Text);<telerik:GridCheckBoxColumn DataField="bAttached" DataType="System.Boolean" FilterControlAltText="Filter bgAttached column" HeaderText="Attach" UniqueName="bgAttached"> <HeaderStyle Width="40px" /></telerik:GridCheckBoxColumn>function ShowPopupByWindow(_type, _targetControl, _radWindow) { var popupURL = 'finder.aspx?action=' + _type; // This is how the Radopen is working right now //var oWnd = window.radopen(popupURL, _radWindow); // This is what I want to implement selector = "#" + _targetControl; jQuery(selector).dialog({ modal : true, open: function () { $(this).load(popupURL); } });}<%@ Reference Page="~/Checking.aspx" %><%@ Page Language="C#" MasterPageFile="~/OLBMaster.master" Title="Order Check Request" AutoEventWireup="true" CodeFile="CheckOrderCopy.aspx.cs" CodeFileBaseClass="CU.Session+Page" Inherits="BPOB.OrderCheckCopy" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><%--<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2012.3.1205.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>--%><asp:Content runat="server" ID="Content0" ContentPlaceHolderID="HeadContent"> <script type="text/javascript" src="js/validate.js"></script> <script type="text/javascript" src="js/jquery.validate.wrapper.js"></script> <script type="text/javascript"> function ValidateOrderForm(sender, args) { $(document).ready(function () { $('#aspnetForm').validate({ errorClass: 'ValidateError' }); // validation rules $('#<%=accountNumber.ClientID%>').rules('add', { required: true, messages: { required: ' Required' } }); $('#<%=ckNumLabel.ClientID%>').rules('add', { required: true, messages: { required: ' Required' } }); $('#<%=dateLabel.ClientID%>').rules('add', { required: true, messages: { required: ' Required' } }); $('#<%=dateLabel.ClientID%>').rules('add', { date: true, messages: { date: ' Invalid Format' } }); $('#<%=amountLabel.ClientID%>').rules('add', { required: true, messages: { required: ' Required' } }); $('#<%=amountLabel.ClientID%>').rules('add', { number: true, messages: { number: ' Invalid Input' } }); if ($('#aspnetForm').valid()) { args.set_cancel(false); //allow pressing to continue } else { args.set_cancel(true); //abort processing } }); } function ValidateFaxOrder(sender, args) { $(document).ready(function () { $('#aspnetForm').validate({ errorClass: 'ValidateError' }); //validation $('#<%=t_Phone_First3.ClientID%>').rules('add', { required: true, messages: { required: ' Required' } }); $('#<%=t_Phone_First3.ClientID%>').rules('add', { number: true, messages: { number: ' Invalid Input' } }); $('#<%=t_Phone_First3.ClientID%>').rules('add', { minlength: 3, messages: { minlength: ' Too few' } }); $('#<%=t_Phone_Second3.ClientID%>').rules('add', { required: true, messages: { required: ' Required' } }); $('#<%=t_Phone_Second3.ClientID%>').rules('add', { number: true, messages: { number: ' Invalid Input' } }); $('#<%=t_Phone_Second3.ClientID%>').rules('add', { minlength: 3, messages: { minlength: ' Too few' } }); $('#<%=t_Phone_Last4.ClientID%>').rules('add', { required: true, messages: { required: ' Required' } }); $('#<%=t_Phone_Last4.ClientID%>').rules('add', { number: true, messages: { number: ' Invalid Input' } }); $('#<%=t_Phone_Last4.ClientID%>').rules('add', { minlength: 4, messages: { minlength: ' Too few' } }); if ($('#aspnetForm').valid()) { args.set_cancel(false); //allow pressing to continue } else { args.set_cancel(true); //abort processing } }); } </script></asp:Content> <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentBody"> <asp:label id="statusLabel" runat="server" ForeColor="Red" Font-Names="Arial" Font-Bold="True">Status</asp:label> <asp:panel id="mailCheck" Runat="server"> <table cellSpacing="0" cellPadding="4" width="95%" align="center" bgColor="white"> <tr> <td><b>This check is no longer viewable online, however you can request a copy be mailed to you.</b> </td> </tr> <tr> <td> <table cellSpacing="5" cellPadding="3" width="500" align="center" border="0"> <tr class="AlternateRow2"> <td><b>Name:</b></td> <td> <asp:Label id="nameLabel" runat="server"></asp:Label></td> </tr> <tr class="AlternateRow1"> <td><b>Email:</b></td> <td> <asp:Label id="emailLabel" runat="server"></asp:Label></td> </tr> <tr class="AlternateRow2"> <td><b>Account:</b></td> <td><asp:DropdownList id="accountNumber" runat="server"></asp:DropdownList> </td> </tr> <tr class="AlternateRow1"> <td><b>Check #:</b></td> <td> <asp:TextBox id="ckNumLabel" runat="server"></asp:TextBox></td> </tr> <tr class="AlternateRow2"> <td><b>Date Cleared:</b></td> <td> <asp:TextBox id="dateLabel" runat="server"></asp:TextBox></td> </tr> <tr class="AlternateRow1"> <td><b>Amount:</b></td> <td> <asp:TextBox id="amountLabel" runat="server"></asp:TextBox></td> </tr> </table> </td> </tr> <tr> <td><b>Please note that a service fee of $3.00 per check will apply to your request. We will send a copy of the check (both the front & back side) to the mailing address we have on file for you via the U.S. Postal Service. If the check cleared within the last year we will put it in the mail within 3-5 business days. If the check cleared over a year ago we will put it in the mail within 10 business days. Need it faster? <asp:LinkButton id="faxLink" OnClick="faxLink_Click" runat="server">Click Here</asp:LinkButton>.</b><br> <br> </td> </tr> <tr> <TD align="center"> <telerik:RadButton ID="OrderButton" runat="server" Text="RadButton"></telerik:RadButton> <%--<asp:ImageButton id="OrderButton" OnClick="OrderButton_Click" runat="server" ImageUrl="images/buttons/Button_OrderCheckCopy.gif" ToolTip="Order Check Copy"></asp:ImageButton>--%></td> </tr> </table> </asp:panel> <asp:panel id="faxIt" Runat="server"> <table> <tr> <td class="TextGreenBold">We can fax the copy to you, but PLEASE NOTE:</td> </tr> <tr> <td> <ul> <li> <b>We cannot guarantee that the copy will be faxed at a specific time, so if you are uncomfortable with your personal checking account information sitting on a fax machine for a time before you pick it up, you should not choose this option.</b><br> <br> <li> <b>The information on the back of the check can often be difficult to read on a faxed copy. So if you choose this option we will also mail a copy to you.</b> </li> </ul> <table class="AccountTable" align="center"> <tr> <td class="TextBlueBold">Fax Number:</td> <td> <table cellSpacing="0" cellPadding="0"> <tr> <td>( <asp:TextBox id="t_Phone_First3" Runat="server" MaxLength="3" Width="30px"></asp:TextBox>)</td> <td> <asp:TextBox id="t_Phone_Second3" Runat="server" MaxLength="3" Width="30px"></asp:TextBox>-</td> <td> <asp:TextBox id="t_Phone_Last4" Runat="server" MaxLength="4" Width="40px"></asp:TextBox></td> </tr> </table> </td> <td> <asp:ImageButton id="faxSubmitButton" OnClick="faxSubmitButton_Click" runat="server" ImageUrl="images/buttons/Button_Submit_Blue.gif" ToolTip="Submit"></asp:ImageButton></td> </tr> </table> </td> </tr> </table> </asp:panel></asp:Content><br><body><br> <div style="float: left; position: relative; left: 50%; display: block;"><br> <div style="float: left; position: relative; left: -50%; display: block;"><br><br> <form id="form1" runat="server"><br>//telerik metadata here <br><br><br> <div style="width: 500px;"><br> <asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString='<%$ ConnectionStrings:ttssConnectionString %>' SelectCommand="SELECT [rang], [data] FROM [Table_1]"></asp:SqlDataSource><br> <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"><br> <ItemTemplate><br> <div ></div><br> <telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" runat="server" DataTextField="rang" DataSourceID="SqlDataSource1" AllowCustomEntry="True" InputType="Text"></telerik:RadAutoCompleteBox><br> </div><br> </ItemTemplate><br> </asp:Repeater><br> </div><br><br> </form><br><br> </div><br> </div><br></body>