Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 views
I'm having issues with pdf export.
 
I have attached the files to descirbe how it shows before and after.

My code is as follows.. Please let me know thoughts.

Also i have latest version of telerik 2013.1.403.35 

 

<style type="text/css"> 

.RadScheduler .rsDayView .rsAptContent

 {

 position: relative !important;

 height: 70px;

 min-height:60px;

 }

 .RadScheduler .rsMonthView .rsWrap,

 .RadScheduler .rsMonthView .rsApt,

 .RadScheduler .rsMonthView .rsAptOut,

 .RadScheduler .rsMonthView .rsAptIn,

 .RadScheduler .rsMonthView .rsAptMid,

 .RadScheduler .rsMonthView .rsAptContent

 {

 

position: static !important;

 height: auto !important;

 }

 

.RadScheduler .rsMonthView .rsWrap

 {

 overflow: hidden;

 font-size: 0;

 line-height: 0;

 }

 

.RadScheduler .rsMonthView .rsLastWrap

 {

 height: 16px !important;

 }

 

.RadScheduler .rsMonthView .rsAptContent

 {

 position: relative !important;

 border-top: 0;

 border-bottom: 0;

 left: 0;

 top: 0;

 }

 

* html .RadScheduler .rsMonthView .rsAptIn

 {

 border-width: 0 1px;

 top: 0;

 margin-left: -1px;

 margin-right: -1px;

 }

 

* html .RadScheduler .rsMonthView .rsAptMid

 {

 top: 0;
left: 1px;

 margin: 0 1px;

 border-width: 1px 0;

 }

 </style>

 



<telerik:RadScheduler runat="server" ID="RadScheduler1" CustomAttributeNames="Completed" DayStartTime="08:00:00" DayEndTime="18:00:00" Height="700px" TimeZoneOffset="08:00:00" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" Reminders-Enabled="true" Width="780px" RowHeight="30px" AppointmentStyleMode="Default" SelectedView="MonthView" Skin="Office2007" 

DayView-UserSelectable="false" TimelineView-UserSelectable="false" WeekView-UserSelectable="false" EnableCustomAttributeEditing="true" ReadOnly="true" TimeSlotContextMenuItemClicked="RadScheduler1_TimeSlotContextMenuItemClicked"

 OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" OnNavigationCommand="RadScheduler1_NavigationCommand"

 OnAppointmentClick="RadScheduler1_AppointmentClick"

 MonthView-AdaptiveRowHeight="false" MonthView-VisibleAppointmentsPerDay="2"

 DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" DataDescriptionField="Description">

 <TimeSlotContextMenus>

 <telerik:RadSchedulerContextMenu ID="cm" runat="server">

 <Items>

 <telerik:RadMenuItem Text="Add Inspection" Value="Add" />

 </Items>

 </telerik:RadSchedulerContextMenu>

 </TimeSlotContextMenus>

 

 <AdvancedForm Enabled="false" Modal="true"></AdvancedForm>

 <AppointmentTemplate>

 <%#Eval("Subject") %>

 </AppointmentTemplate>

 <TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>

 <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>

 <ExportSettings OpenInNewWindow="true" FileName="SchedulerExport">

 <Pdf PageTitle="Inspection Calendar" Author="ORU" Creator="" Title="Schedule">

 </Pdf>

 </ExportSettings>

 </telerik:RadScheduler>

 

 

Protected Sub RadButton1_Click(ByVal sender As Object, ByVal e As EventArgs)

 RadScheduler1.ExportToPdf()

End Sub

 





Kate
Telerik team
 answered on 30 Oct 2013
3 answers
107 views

Hi,

I am trying to automate a web application using Coded UI 2012. However Actions are not performed during playback and hand coding approach.

Does Coded UI 2012 SP2 Support Telerik controls designed with ASP.NET Application.

Details:
 Silverlight Version - 1.2,
 DLL Name - Telerik.Web.UI,
 Runtime Version - v2.0.50727,
 DLL Version - 2011.1.413.35

Warning: A problem with WMI has caused an error in the recording. To correct this, verify that WMI services are running and that you have access permissions to WMI. The WMI repository might also be corrupted. For more information, see "WMI Troubleshooting Techniques" (http://go.microsoft.com/fwlink/?LinkID=229846)

Error: Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnHiddenControlException' occurred in Microsoft.VisualStudio.TestTools.UITesting.dll but was not handled in user code

Please help me out.

Thanks ,
Raji

Genady Sergeev
Telerik team
 answered on 30 Oct 2013
5 answers
226 views
Please look at the attach file
I have that problem with RADGRID, it is really strange, why do i have empty line above the header.
If I remove the header, it will appear again?
how can i solve this problem?
Alan
Top achievements
Rank 1
 answered on 30 Oct 2013
2 answers
106 views
I've created a simple page with a RadGrid and a RadToolTipManager on it.  What I'm trying to accomplish is very simple.  Each row in the grid has an ID and GridImageColumn.  When the image is clicked, the ID should display in the ToolTip window.  The issue I'm experiencing is after the first ToolTip is displayed, all subsequent attempts to display ToolTips always display the first ToolTip that was displayed, not the ToolTip for the row clicked.  So if 3 is clicked, I'd expect to see 3 in the ToolTip.  If 2 is clicked, I'd expect to see 2 in the Tooltip and so on. 

Here is a video recording displaying the behavior of the issue.  If I refresh the page, I can start all over again.

http://screencast.com/t/4zuJtxgGGGUW

rttm.aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="rttm.aspx.vb" Inherits="rttm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
 <title></title>
</head>
<body>
 <form id="form1" runat="server">
 <div>
 <telerik:RadScriptManager runat="server" ID="mgrJS" AsyncPostBackTimeout="600">
 </telerik:RadScriptManager>
 <telerik:RadGrid runat="server" ID="rg" AutoGenerateColumns="False" Width="620px" Skin="Web20">
 <MasterTableView HierarchyLoadMode="ServerOnDemand" Width="620px" TableLayout="Auto" DataKeyNames="ID">
 <Columns>
 <telerik:GridBoundColumn HeaderText="ID" UniqueName="ID" DataField="ID">
 </telerik:GridBoundColumn
<telerik:GridImageColumn UniqueName="View" ImageUrl="App_Themes/BlueBT2009/Images/Inq.gif"></telerik:GridImageColumn>
 </Columns>
 </MasterTableView>
 <FilterMenu EnableImageSprites="False">
 </FilterMenu>
 </telerik:RadGrid>
 <telerik:RadToolTipManager ID="RadToolTipManager1" OffsetY="-1" HideEvent="Default"
 Width="800px" Height="600px" runat="server" EnableShadow="true" RelativeTo="BrowserWindow"
 Position="Center" OnAjaxUpdate="Load_ToolTip" 
Modal="false" ContentScrolling="Auto" AutoCloseDelay="0" ShowEvent="OnClick" >
 </telerik:RadToolTipManager>
 </div>
 </form>
</body>
</html>

rttm.aspx.vb

Partial Class rttm
 Inherits System.Web.UI.Page
 Protected Sub rg_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rg.ItemDataBound
If e.Item.ItemType = GridItemType.Item OrElse e.Item.ItemType = GridItemType.AlternatingItem Then
 Me.RadToolTipManager1.TargetControls.Add(TryCast(e.Item, GridDataItem)("View").ClientID, TryCast(e.Item, GridDataItem)("ID").Text, True)
End If
 End Sub
 Protected Sub rg_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rg.NeedDataSource
Dim dt As New DataTable()
Dim col As New DataColumn("ID")
dt.Columns.Add(col)
Dim row As DataRow = dt.NewRow
row(0) = 1
dt.Rows.Add(row)
row = dt.NewRow
row(0) = 2
dt.Rows.Add(row)
row = dt.NewRow
row(0) = 3
dt.Rows.Add(row)
Me.rg.DataSource = dt
Session("rttm") = dt
End Sub
 Protected Sub Load_ToolTip(ByVal sender As Object, ByVal args As ToolTipUpdateEventArgs)
Dim invoiceDetails() As String = args.Value.Split("_")
Dim toAdd As UserControl = LoadUserControl("rttmdetails.ascx", invoiceDetails)
args.UpdatePanel.ContentTemplateContainer.Controls.Add(toAdd)
args.UpdatePanel.Update()
End Sub
 Private Function LoadUserControl(ByVal UserControlPath As String, ByVal ParamArray constructorParameters As Object()) As UserControl
Dim constParamTypes As New List(Of Type)()
For Each constParam As Object In constructorParameters
constParamTypes.Add(constParam.[GetType]())
Next
 Dim ctl As UserControl = TryCast(Page.LoadControl(UserControlPath), UserControl)
Dim constructor As System.Reflection.ConstructorInfo = ctl.[GetType]().BaseType.GetConstructor(constParamTypes.ToArray())
If constructor Is Nothing Then
 Throw New MemberAccessException("The requested constructor was not found on : " & ctl.[GetType]().BaseType.ToString())
Else
constructor.Invoke(ctl, constructorParameters)
End If
 Return ctl
End Function
End Class

rttmDetails.aspx

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="rttmDetails.ascx.vb" Inherits="rttmDetails" %>
<telerik:RadGrid ID="rg" runat="server" AutoGenerateColumns="false" Skin="Web20" AllowMultiRowSelection="true">
<MasterTableView Name="details" DataKeyNames="ID">
 <Columns>
 <telerik:GridBoundColumn HeaderText="ID" UniqueName="ID" DataField="ID">
 </telerik:GridBoundColumn>
 </Columns>
</MasterTableView>
</telerik:RadGrid>

rttmDetails.aspx.vb

Partial Class rttmDetails
 Inherits System.Web.UI.UserControl
 Private _id As String
 Public Property Identity() As String
 Get
 Return (_id)
End Get
 Set(ByVal value As String)
_id = value
End Set
 End Property
 Private _details As DataRow()
ReadOnly Property Details() As DataRow()
Get
 Return _details
End Get
 End Property
 Public Sub New()
End Sub
 Public Sub New(ByVal id As String)
Dim dt As DataTable = CType(Session("rttm"), DataTable)
_id = id
_details = dt.Select("ID=" & id)
End Sub
 Protected Sub rgInvoice_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rg.NeedDataSource
Me.rg.DataSource = Details
End Sub
End Class

I'm sure this is a common issue that should have an easy fix.  I'm anxiously awaiting your answer.

Thanks,
Rob

Rob
Top achievements
Rank 1
 answered on 30 Oct 2013
1 answer
146 views
Hi There,
I am looking to see if it is possible to export the radorgchart control to a png file using something along the lines of Inkscape. It is possible to do this with the radhtmlchart so i'm not sure if the same applies for this , can someone please advise?
Thanks,
Chris
Kate
Telerik team
 answered on 30 Oct 2013
4 answers
162 views
 <telerik:RadAsyncUpload ID="uplFilenameNew" runat="server">
                     
                     
                    </telerik:RadAsyncUpload>


how to add file filter option in javascript depending on combobox item (pdf,spreadsheet,text,jpeg)

thank you.

please help me.
Sameer
Top achievements
Rank 1
 answered on 30 Oct 2013
3 answers
118 views
My filters use AutoPostBackOnFilter=true to capture the [Enter] key, as shown here:

http://www.telerik.com/help/aspnet-ajax/grid-search-on-key-press.html

This is great for having a quick default filter option, but what about when I want to use a different filter option? What happens right now is essentially two filters to use one. To clarify, let's assume I have things set up so that [Enter] defaults to a "Contains" filter, and I do the following:

1. Enter some text into a filter text box.
2. Click the filter button, because I do not want to do a "Contains" filter. The grid posts because the filter text box has lost focus.
3. The filter drop down has disappeared, so I click it again. Now I can select the filtering option I want, e.g., "Between".

As you can see, I have to do to the default filter every time I want to do an alternative filter option. How can I avoid this?

Thanks.
J
Top achievements
Rank 1
 answered on 30 Oct 2013
1 answer
121 views
I noticed that in new version of Telerik (2013 Q3), the bottom border is missing if the grid has more than one page.
Please take a look at the attached pic.

Thanks
Lamk. 
Milena
Telerik team
 answered on 30 Oct 2013
3 answers
154 views
Hi,

I am attempting to build UI tests of aspx pages which use Telerik RadControls for ASP.NET Ajax.  I found a great example of how to interact with the RadComboBox at http://haditeo.wordpress.com/category/watin/, but that deals with the Telerik controls from 2009 and doesn't seem to apply to newer versions as there is no _Dropdown 

I am currently using version 2012.1.215.40 of Telerik RadControls for ASP.NET Ajax.  How can I select a RadComboBox item with that version?

Thanks.
Aneliya Petkova
Telerik team
 answered on 30 Oct 2013
5 answers
239 views
I signed up for RADControls ASP.NET AJAX trial a couple of weeks ago. At that time I downloaded the trail installers (msi) for Q2 release. Recently, when I was notified about Q3 upgrade being available, I downloaded the Q3 trial installer with the intent to upgrade to the latest release for my evaluation.

I find that the installer is a 3 MB download and invoking the installer starts the download. This is working very slow for me. Is it possible for me to download a full msi package and use it for upgrading my trial installation from Q2 2011 to Q3 2011.

Thanks,
Shreesh
Dyanko
Telerik team
 answered on 30 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?