I have reviewed the Upload Async demo (the overview). Telerik describes this demo as a "simple mail app mockup" and the AsyncUpload is used to add "file attachments". Within the demo, I clicked [Select] to "attach" a file. The demo also displays a default email address of john@johnsmith.com. I replaced this address with my own and clicked [Send], expecting to receive a message in my Inbox that included the file attachment. I never received a mail message (after several attempts).
Can someone explain how this demo is intended to work?
Is it suppose to send email?
If it is suppose to send email, is it also suppose to include a file attachment?
Can I change it so that it emails a hyperlink to a file that was uploaded to my webserver, instead of physically emailing an attachment?
I want a hyperlink (of the uploaded file) to be embedded in the mail message so that when a user receives the mail message, they can simply click on the hyperlink, and have it prompt the user to download the file from my webserver.
Can this be done? How?
Thank you,
Steven
<telerik:RadComboBox ID="ddlCustomer" runat="server" ClientIDMode="Static" EnableLoadOnDemand="true" MaxHeight="200" ShowMoreResultsBox="true" EnableVirtualScrolling="true" EmptyMessage="Type here ..." > <WebServiceSettings Path="~/TestWS.svc" Method="LoadCustomersOnDemand" /></telerik:RadComboBox><telerik:RadComboBox ID="ddlCustomer2" runat="server" ClientIDMode="Static" EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" EmptyMessage="Type here ..."> <WebServiceSettings Path="~/TestWS.svc" Method="LoadCustomersOnDemand" /></telerik:RadComboBox>$find("ddlCustomer").get_selectedItem()Imports Imports Telerik.Web.Examples.ToolTip.ToolTipCalendarProtected Sub RadToolTipmanager1_AjaxUpdate(sender As Object, e As ToolTipUpdateEventArgs) Dim details As AppointmentDetails = DirectCast(Me.LoadControl("../Admin/UserControls/AppointmentDetails.ascx"), AppointmentDetails) details.AppointmentID = e.Value e.UpdatePanel.ContentTemplateContainer.Controls.Add(details) End SubImports System.Web.SecurityImports System.Web.UIImports System.Web.UI.WebControlsImports System.Web.UI.WebControls.WebPartsImports System.Web.UI.HtmlControlsImports System.DrawingImports System.IONamespace Telerik.Web.Examples.ToolTip.ToolTipCalendar Partial Public Class AppointmentDetails Inherits System.Web.UI.UserControl Private EmpployeeClass As New EmployeeManager() Private user As New UserManager() Private m_appointmentID As String Public Property AppointmentID() As String Get Return m_appointmentID End Get Set(value As String) m_appointmentID = value End Set End Property
Protected Sub Page_PreRender(sender As Object, e As EventArgs)
Me.AppointmentsDataSource.SelectParameters("ID").DefaultValue = Me.AppointmentID.ToString()
GridView1.DataSource = AppointmentsDataSource
GridView1.DataBind()
End Sub
End Class
End Namespace
<telerik:RadToolTipManager Width="250px" HideDelay="0" RelativeTo="Mouse" ID="RadToolTipManager2" runat="server" Position="TopRight" OnAjaxUpdate="RadToolTipmanager1_AjaxUpdate" AutoCloseDelay="0"></telerik:RadToolTipManager><telerik:RadCalendar ID="RadCalendar2" RangeMinDate="3/1/2007" runat="server" Width="100%" Height="200px" Skin="Default" OnDayRender="RadCalendar2_DayRender" RangeMaxDate="3/30/2014"></telerik:RadCalendar>Hi,
I have a grid on my page which allows users to edit records and do batch updates. I am using the following demo which works just fine. (http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultvb.aspx?#qsf-demo-source).
However, in my RadGrid I have several bound columns set to ReadOnly and when the users accidentally double click those ReadOnly columns JavaScript errors occur. It seems the errors occur because the JavaScript functions are looking for the editable control (textbox) for every column including the ReadOnly ones.
I tried to modify the JavaScript functions so no “dblclick” handler is added to those ReadOnly columns but I am still getting the errors.
Using the demo specified above, is there any way the ReadOnly columns will be ignored when double clicking the cell?
Using:
Thanks
Sigi Perez

<body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager> <script type="text/javascript"> //Put your JavaScript code here. </script> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"></telerik:RadAjaxLoadingPanel> <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" CellSpacing="0" GridLines="None" Width="800px" AllowFilteringByColumn="true" EnableLinqExpressions="false" AutoGenerateColumns="false" OnNeedDataSource="RadGrid1_NeedDataSource" ShowFooter="True"> <MasterTableView AutoGenerateColumns="false" EditMode="InPlace" AllowFilteringByColumn="True" ShowFooter="True" TableLayout="Auto"> <Columns> <telerik:GridTemplateColumn DataField="Freight" HeaderText="Freight" SortExpression="Freight" AutoPostBackOnFilter="true" CurrentFilterFunction="GreaterThanOrEqualTo" ShowFilterIcon="false"> <ItemTemplate> <asp:LinkButton ID="lbl_freight" runat="server" Text='<%#Eval("Freight")%>' Visible="true"/> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn DataField="ShipName" HeaderText="Ship Name" SortExpression="ShipName" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"> <ItemTemplate> <asp:LinkButton ID="lbl_name" runat="server" Text='<%#Eval("ShipName")%>' Visible="true"/> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn DataField="ShipCountry" UniqueName="ShipCountry" HeaderText="Ship Country" SortExpression="ShipCountry"> <FilterTemplate> <telerik:RadTextBox runat="server" ID="filterCountry" ClientEvents-OnValueChanged="CountryChanged" CssClass="rgFilterTextBox"></telerik:RadTextBox> <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server"> <script type="text/javascript"> function CountryChanged(sender, args) { var txtbox = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>"); txtbox.filter("ShipCountry", sender.get_value(), "Contains"); } </script> </telerik:RadScriptBlock> </FilterTemplate> <ItemTemplate> <asp:LinkButton ID="lbl_country" runat="server" Text='<%#Eval("ShipCountry")%>' Visible="true"/> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> </telerik:RadGrid> </form> </body>public partial class RadGridFilterTest : System.Web.UI.Page { protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { LoadData(); } private void LoadData() { RadGrid1.DataSource = GetDataTable("SELECT OrderID, OrderDate, Freight, ShipName, ShipCountry FROM Orders"); } public DataTable GetDataTable(string query) { String ConnString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; SqlConnection conn = new SqlConnection(ConnString); SqlDataAdapter adapter = new SqlDataAdapter(); adapter.SelectCommand = new SqlCommand(query, conn); DataTable myDataTable = new DataTable(); conn.Open(); try { adapter.Fill(myDataTable); } finally { conn.Close(); } return myDataTable; } }
