Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
117 views

Hello,

I would like your attention that following code is the format which I paste in Editor control. I want same format in PDF print also.

 

Hhere is Code:

a b c d e f g h i j k l<br />
<br />
<strong style="font-family: &quot;times new roman&quot;; font-weight: bold;">a &nbsp;b &nbsp;c &nbsp;d &nbsp;e &nbsp;f &nbsp;g &nbsp;h &nbsp;i &nbsp;j &nbsp;k &nbsp;l<br />
</strong><br />
<strong style="font-weight: bold; font-size: 14.6667px;"><span style="font-size: 26pt;">a &nbsp; b &nbsp; c &nbsp; d &nbsp; e &nbsp; f &nbsp; g &nbsp; h &nbsp; i &nbsp; j &nbsp; k &nbsp; l</span><br />
<span style="font-family: &quot;times new roman&quot;;">
a</span><span class="Apple-tab-span" style="white-space: pre; font-family: &quot;times new roman&quot;;"> </span><span style="font-family: &quot;times new roman&quot;;">b</span><br />
</strong><br />
<table style="font-family: &quot;times new roman&quot;; font-weight: bold; border: 1px solid black; width: 35%;">
    <tbody>
        <tr>
            <td style="border: 1px solid black;">&nbsp;1</td>
            <td style="border: 1px solid black;">&nbsp;2</td>
        </tr>
        <tr>
            <td style="border: 1px solid black;">&nbsp;4</td>
            <td style="border: 1px solid black;">&nbsp;5</td>
        </tr>
        <tr>
            <td style="border: 1px solid black;">&nbsp;7</td>
            <td style="border: 1px solid black;">&nbsp;8</td>
        </tr>
    </tbody>
</table>
<br />
<br />
<br />
<br />
njhsjkdfhsf<br />
<br />
<br />
<br />
sdfjoidsfhio<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
dsfjjhdslkfjsd<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
sdifolsdkfosdhfoiu<br />
<br />

I will appreciate if you give me solution. I am waiting your reply

Regards,

Satosh

Satosh
Top achievements
Rank 1
 asked on 28 Jun 2017
0 answers
143 views

I am new to radgrids.  I have an .ascx user control that pops up for editing the record. When it pops up there is an 'extra' slim section added across the top of my control with an 'X' button (all the way to the right) for closing.  See attached file/image. How/what would I add to add a pop-up a confirmation?

Thanks for your help.

Reid
Top achievements
Rank 1
 asked on 27 Jun 2017
1 answer
102 views

I have been searching for some kind of example on how this is done, but I need to have a column in my grid that has link buttons post back to the server.  All of the examples I have found are for a single control.  I have tried to extrapolate that into dynamic controls but have been unsuccessful.  

there are 5 columns in the grid:  Report Name, Requested Time, Completed Time, Execution Time, Status, Action
If the status is Completed the Action TemplateColumn shows a link button that must post back as I have to call a WCF Service to retrieve a non-local file for download.  
This works if I remove the Ajax component.  I just can't get it working correctly with the Ajax enabled.
Please provide me some guidance on this.

Alex
Top achievements
Rank 1
 answered on 27 Jun 2017
1 answer
96 views

I have been searching for some kind of example on how this is done, but I need to have a column in my grid that has link buttons post back to the server.  All of the examples I have found are for a single control.  I have tried to extrapolate that into dynamic controls but have been unsuccessful.  

there are 5 columns in the grid:  Report Name, Requested Time, Completed Time, Execution Time, Status, Action

If the status is Completed the action item shows a link button that must post back as I have to call a WCF Service to retrieve a non-local file for download.  

This works if I remove the Ajax component.  I just can't get it working correctly with the Ajax enabled.

Please provide me some guidance on this.

 

Thanks 

Alex
Top achievements
Rank 1
 answered on 27 Jun 2017
0 answers
121 views

Hi, I'm struggling to get times to be consistent between the RadScheduler when retrieving data from Exchange via EWS.  I only need to work in GMT timezone.  I've set what I think are all necessary TimeZones to GMT, but when retrieving the data the appointments are shown +1 hour as compared to Outlook.  Some example code to show what is happening is below.  When adding a new appointment this seems to work OK and is consistent.  When updating however, the e.ModifiedAppointment.Start date is an hour behind what I actually choose in the RadScheduler.  Any help appreciated.

 

<telerik:RadScheduler TimeZoneID="GMT Standard Time" RenderMode="Lightweight" runat="server" ID="RadScheduler1" DayStartTime="07:00:00" Height="600px"
DayEndTime="20:00:00" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentDelete="RadScheduler1_AppointmentDelete"
DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" DataTimeZoneIdField="TimeZone" Skin="WebBlue"
RowHeight="28px" MinutesPerRow="30" FirstDayOfWeek="Monday" LastDayOfWeek="Friday" OverflowBehavior="Auto">
<AdvancedForm Modal="true"></AdvancedForm>
<TimelineView UserSelectable="false"></TimelineView>
<TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
<AppointmentContextMenuSettings EnableDefault="true" ></AppointmentContextMenuSettings>
<Reminders Enabled="false"></Reminders>
</telerik:RadScheduler>

 

Public Function LoadAppointments() As List(Of RevAppointment)
Dim appointments As New List(Of RevAppointment)
Dim now = Date.Now
Dim startDate As Date = New Date(now.Year, now.Month, now.Day, 0, 0, 0)
Dim endDate As Date = startDate.AddDays(7)
Dim calendar As CalendarFolder = CalendarFolder.Bind(Me.ExService, WellKnownFolderName.Calendar, New PropertySet())
Dim cView As New CalendarView(startDate, endDate, 250)
cView.PropertySet = New PropertySet(AppointmentSchema.Subject, AppointmentSchema.Start, AppointmentSchema.End, AppointmentSchema.Id, AppointmentSchema.TimeZone, AppointmentSchema.StartTimeZone, AppointmentSchema.EndTimeZone)
Dim cAppointments As FindItemsResults(Of Microsoft.Exchange.WebServices.Data.Appointment) = calendar.FindAppointments(cView)
For Each cAppointment In cAppointments
Dim tz = TimeZoneInfo.GetSystemTimeZones().FirstOrDefault(Function(x) x.DisplayName = cAppointment.TimeZone)
Dim appointment As New RevAppointment
appointment._id = cAppointment.Id.ToString
appointment.Start = cAppointment.Start
appointment.End = cAppointment.End
appointment.Subject = cAppointment.Subject
appointment.TimeZone = tz.Id
appointments.Add(appointment)
Next
Return appointments
End Function

 

Protected Sub RadScheduler1_AppointmentUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.AppointmentUpdateEventArgs)
Dim id As New ItemId(e.Appointment.ID)
Dim ps As New PropertySet(AppointmentSchema.Subject, AppointmentSchema.Start, AppointmentSchema.End, AppointmentSchema.Id, AppointmentSchema.TimeZone, AppointmentSchema.IsMeeting)
Dim updatedAppt As Appointment = Appointment.Bind(Me.ExService, id, ps)
updatedAppt.Subject = e.ModifiedAppointment.Subject
updatedAppt.Body = e.ModifiedAppointment.Description
updatedAppt.Start = e.ModifiedAppointment.Start
updatedAppt.End = e.ModifiedAppointment.End
updatedAppt.Location = ""
updatedAppt.ReminderDueBy = DateAdd(DateInterval.Minute, -15, e.ModifiedAppointment.Start)

Dim mode As SendInvitationsOrCancellationsMode
If updatedAppt.IsMeeting Then
mode = SendInvitationsOrCancellationsMode.SendToAllAndSaveCopy
Else
mode = SendInvitationsOrCancellationsMode.SendToNone
End If
updatedAppt.Update(ConflictResolutionMode.AlwaysOverwrite, mode)
End Sub

 

Robert
Top achievements
Rank 1
 asked on 27 Jun 2017
3 answers
156 views
Is there an example of using On Demand Paging with a RadClientDataSource.

We have a RadClientDataSource that connects to a controller return json data.  We pass the page index, and page size to the controller, and it returns the records for that page, as well as the total count that we assign to the virtualCount.

However, when we try to page, we get an "Out of stack space".  We do not see another call to our parameter map function to get another page.  How do we set this up?
Vasil
Telerik team
 answered on 27 Jun 2017
0 answers
248 views
Hi, I'm trying to bind between an excel file and the RadSpreadsheet control using what I checked in your forums.
The code I use and does not work is:
     Dim formatProvider As Telerik.Windows.Documents.Spreadsheet.FormatProviders.IWorkbookFormatProvider = New Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.Xlsx.XlsxFormatProvider
                        Using input As Stream = New FileStream(filePath, FileMode.Open)
                            RadSpreadsheet1.Sheets.AddRange(Telerik.Web.Spreadsheet.Workbook.FromDocument(formatProvider.Import(input)).Sheets)  
                        End Using

In the UI part
  </div>
        <telerik:RadSpreadsheet runat="server" ID="RadSpreadsheet1">
<div>


The version of the spreadsheet is 2016.2.421.40 and telerik web.UI 2016.2.504.40.
I'm trying to get this code working in chrome.
jose
Top achievements
Rank 1
 asked on 27 Jun 2017
0 answers
141 views
What method can be used to check files for virus on upload ?
MARK
Top achievements
Rank 1
 asked on 27 Jun 2017
8 answers
1.5K+ views
Hi,

I am using a RadTreeView & the tree menu is data sourced. On the server side when I try to grab the nodes using

foreach (RadTreeNode node in RadTreeView1.Nodes)

This provides only the root nodes (the ones at the higher level). All of the nodes have quite few child node & subfolders (which again contain child nodes). How can I scroll thru all the nodes in the tree?

Thank you

raju
Top achievements
Rank 1
 answered on 27 Jun 2017
6 answers
279 views

Hi.
I am not good at English.

I use RadTreeView for Ajax 2009 Q3.
I try to maintain a state of RadTreeView Nodes before creating a new folder via right-clicking menu.
The sorce code is the following.


namespace TelerikTreeView  
{  
    public partial class _Default : System.Web.UI.Page  
    {  
        /// <summary>  
        /// Variable for state maintein  
        /// </summary>  
        private RadTreeNodeCollection preChangeTreeNodes;  
          
        protected void RadTreeView1_ContextMenuItemClick(object sender, RadTreeViewContextMenuEventArgs e)  
        {  
            RadTreeNode clickedNode = e.Node;  
 
            // Copy Nodes  
            this.CopyRadTreeNodesTo(out preChangeTreeNodes);  
            .....  
        }  
 
        /// <summary>  
        /// The state of present TreeView is copied onto the RadTreeNodeCollection object of the argument.  
        /// </summary>  
        /// <param name="nodes"></param>  
        private void CopyRadTreeNodesTo(out RadTreeNodeCollection nodes)  
        {  
            nodes = new RadTreeNodeCollection(this.RadTreeView1);  
            foreach (RadTreeNode node in this.RadTreeView1.Nodes)  
            {  
                nodes.Add(node.Clone());  
            }  
        } 

The following error occurs by the second post backing.

-----------------------
Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
-----------------------

The error will not occurs when EnableViewState property of TreeView is false.
But I don't want to change EnableViewState to false. Beause I can not get RadTreeViewContextMenuEventArgs Value when it is false.
Also SessionState mode is SQLServer, I can not use session to maintain the node.
How to keep the node during page post-back?

raju
Top achievements
Rank 1
 answered on 27 Jun 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?