I've created a one page website that relies on cloning sections of the DOM to generate new subpages. Initially there is an instance of RadAsyncUpload in the page, generated server side on page load. but I need to be able to add further instances of RadAsyncUpload without doing a postback.
I've cloned the relevant section of the DOM (generating unique IDs for each element), and registered the new RadAsyncUpload element thus: Sys.Application.add_init(function() {
$create(Telerik.Web.UI.RadAsyncUpload, {... etc
This succesfully creates an uploader control in the form, which uploads files to the correct temporary location, and when I finally do a postback to submit the data to the server, the RadAsyncUpload control appears correctly in the Page.Controls collection, but the uploadedFiles collection is empty for the cloned control.
Can anyone tell me how the link between the control and the temporary file is managed on postback, and if there is a way to achieve my goal of cloning a RadAsyncUpload control without doing a postback?
Many thanks
Will
I am using RadHtmlChart (Telerik UI for ASP.NET AJAX - Visualizations 2015 Q3).
Can we put scrolling for chart legend, When there are many items in legend. Is there any solution?
Urgently required.
Thanks in advance
I have the following code and I'm trying to add a confirmation dialog to the delete button. No matter what I tried I couldn't manage to get the dialog to fire. The latest method I used is this one which I found in a, admittedly, very old thread from this forum. Any ideas?
.aspx file
<telerik:RadListView ID="RadListView1" runat="server" DataSourceID="CompNotesSqlDataSource" >
<ItemTemplate>
<ul>
<li>
<asp:Label ID="TimeLabel" runat="server" Text="Date/Time:"></asp:Label>
<asp:Label ID="TimeText" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "NoteDate","") %>'></asp:Label> <br />
<asp:Label ID="Label19" runat="server" Text="Company:"></asp:Label>
<asp:Label ID="FullNameLabel" runat="server" Text='<%# Eval("Description") %>' />
<br />
<asp:Label ID="Label20" runat="server" Text="Notes:"></asp:Label>
<asp:Label ID="RankLevelLabel" runat="server" Text='<%# Eval("Comments") %>' />
<br />
</li>
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="updatePanel1">
<ContentTemplate>
<%--<telerik:RadButton ID="btndelete" CommandArgument='<%# Eval("Id")%>' OnCommand="btndelete_Command" runat="server" Text="Delete"></telerik:RadButton>--%>
<telerik:RadButton ID="btndelete" OnClientClick='<%# confirmDelete( Eval("Id").ToString() ) %>' CommandArgument='<%# Eval("Id")%>' OnCommand="btndelete_Command" runat="server" Text="Delete"></telerik:RadButton>
<telerik:RadButton id="btnedit" CommandArgument='<%# Eval("Id")%>' OnCommand="btnedit_Command" runat="server" text="Edit"></telerik:RadButton>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btndelete" EventName="Command" />
<asp:AsyncPostBackTrigger ControlID="btnedit" EventName="Command" />
</Triggers>
</asp:UpdatePanel>
</ul>
</ItemTemplate>
</telerik:RadListView>
----------------------------------
.cs file
public string confirmDelete(string Name)
{
return @"javascript:if(!confirm('This action will delete the "
+ Name
+ @". Are you sure?')){return false;}";
}
We are having a strange layout behavior happening with the Recurrence Editor. The internal controls are overlapping (please see attached imaged).
Does anyone know how I can fix this?
-Ben

I don't know why this would be happening but when I use a PivotGrid, it interrupts or distorts the RadMenu CSS (see images attached). Below is the mark up for the page. This is in IE11, Telerik v.2015.2.729.45.
Please do not advise that I upgrade, I do not have the funds, but I would appreciate a work-around.
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Summary.aspx.cs" Inherits="bccwfm.REACH.Summary" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Main" runat="server">
<table border="0" class="label" style="margin:5px;border-collapse:separate;border-spacing:5px;padding-top:5px">
<tr>
<td> Start Date</td>
<td>
<telerik:RadDatePicker ID="RDP_StartDate" runat="server" ShowPopupOnFocus="true" ToolTip="Select a start date" Culture="en-US" TabIndex="1" AutoPostBack="true" Width="110px" CssClass="hvr-glow">
<Calendar ID="Calendar2" runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" ShowRowHeaders="false"></Calendar>
<DateInput ID="DateInput2" runat="server" TabIndex="1" DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" AutoPostBack="True" LabelWidth=""></DateInput>
<DatePopupButton TabIndex="1"></DatePopupButton>
</telerik:RadDatePicker>
</td>
<td>End Date</td>
<td>
<telerik:RadDatePicker ID="RDP_EndDate" runat="server" ShowPopupOnFocus="true" ToolTip="Select a end date" Culture="en-US" TabIndex="2" AutoPostBack="true" Width="110px" CssClass="hvr-glow">
<Calendar ID="Calendar1" runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" ShowRowHeaders="false"></Calendar>
<DateInput ID="DateInput1" runat="server" TabIndex="1" DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" AutoPostBack="True" LabelWidth=""></DateInput>
<DatePopupButton TabIndex="2"></DatePopupButton>
</telerik:RadDatePicker>
</td>
<td>
<telerik:RadButton ID="RB_Export" runat="server" Text="Export" OnClick="RB_Export_Click" CssClass="hvr-glow"/>
</td>
</tr>
</table>
<telerik:RadPivotGrid ID="RadPivotGrid1" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="SqlDataSource1" EmptyValue="0" EnableZoneContextMenu="true" AllowFiltering="true" ClientSettings-EnableFieldsDragDrop="true" Width="99%" style="margin:10px" PageSize="50" >
<ExportSettings FileName="REACH Summary" UseItemStyles="true">
<Excel Format="Xlsx" />
</ExportSettings>
<Fields>
<telerik:PivotGridRowField DataField="Dot4Desc" Caption="Franchise"/>
<telerik:PivotGridRowField DataField="CreatedBy" Caption="Created By"/>
<telerik:PivotGridRowField DataField="Decision" Caption="Decision"/>
<telerik:PivotGridColumnField DataField="ReasonDesc" Caption="Reason"/>
<telerik:PivotGridColumnField DataField="PositionDesc" Caption="Position"/>
<telerik:PivotGridColumnField DataField="StatusDesc" Caption="Status"/>
<telerik:PivotGridAggregateField DataField="ReqID" Caption="Requests" Aggregate="Count" TotalFormat-GroupName="Requests"/>
</Fields>
</telerik:RadPivotGrid>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CWFMO %>" SelectCommand="REACH_GetSummary" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="RDP_StartDate" DbType="Date" Name="startdate" PropertyName="SelectedDate" />
<asp:ControlParameter ControlID="RDP_EndDate" DbType="Date" Name="enddate" PropertyName="SelectedDate" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>
I'm trying to use the new print button on my rad grid but it is not showing, what am I missing. I'm using VS2013 and I upgraded the Telerik.Web.UI dll to version 2016.2.607.45. below is the example code I put together. The Add New record and the Refresh buttons do show, but not the print
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
<telerik:RadGrid ID="RadGrid1" RenderMode="Lightweight" runat="server" DataSourceID="SqlDataSource2" GridLines="Both" AutoGenerateColumns="true">
<MasterTableView DataSourceID="SqlDataSource2" CommandItemDisplay="Top">
<CommandItemSettings ShowPrintButton="true" ShowRefreshButton="true" />
</MasterTableView>
</telerik:RadGrid>
</div>
</form>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:Northwind %>"
SelectCommand="SELECT top 20 * FROM Customers" >
</asp:SqlDataSource>
</body>
</html>
Hi,
I am using treelist to show heirachical data.
Both parent and child are stored in same table
Sample tables:
SampleTable
When I am creating a child, the parent category id needs to be shown on edit form template
and when a new parent is being created it should allow user to select the value.
I am using hybrid approach of automatic CRUD operation and using formtemplate
Can this be done?
Regards,
Swapnil
