This is a migrated thread and some comments may be shown as answers.

appointment change text problem

7 Answers 123 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Marek Kruk
Top achievements
Rank 1
Marek Kruk asked on 26 Jun 2012, 03:52 PM
Hi,

i try change appointmet text use AppointmentFormatting event but it is not working properly

    Private Sub RadScheduler1_AppointmentFormatting(sender As Object, e As Telerik.WinControls.UI.SchedulerAppointmentEventArgs) Handles RadScheduler1.AppointmentFormatting

        e.AppointmentElement.Text = "custom text"
    End Sub

appointment text: "date from" - "date to" custom text;summary
see the attached image
how to change it to "custom text"

scheduler settings:

Me.RadScheduler1.ActiveViewType = Telerik.WinControls.UI.SchedulerViewType.Timeline
Me.RadScheduler1.GetTimelineView().ShowTimescale(Timescales.Months)
Me.RadScheduler1.GetTimelineView().GetTimescale(Timescales.Months).DisplayedCellsCount = 12

Thank You

7 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 28 Jun 2012, 10:50 AM
Hello Marek,

Thank you for writing.

With the code provided I am able to successfully change the appointment text to "custom text". Please refer to the attached project.

If this is now what you want to achieve, please provide me with more details regarding your scenario and I will be glad to help you achieve it.
 
Regards,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Marek Kruk
Top achievements
Rank 1
answered on 28 Jun 2012, 12:15 PM
Hi,

Thank you for your reply. When I run your example of getting the show date and "custom text" as in my case. I need to get only the "custom text" with no other wording (see the attached image).

Thank you.
m.
0
Marek Kruk
Top achievements
Rank 1
answered on 28 Jun 2012, 03:25 PM
Hello again,

I found a method for the solution in another post but the text still contains unwanted characters ";" and I have to map a object property,  for example "Info" object property  on "Summary"

...
Me.rschedSaved.AppointmentTitleFormat = "{2}"
...
appointmentMappingInfo.Summary = "Info"
...

http://www.telerik.com/community/forums/winforms/scheduler/can-you-remove-the-times-from-the-appointment-details.aspx

Thank you.
0
Stefan
Telerik team
answered on 03 Jul 2012, 06:48 AM
Hi Marek,

The solution that you have found is the correct way to display just the desired text. Attached you can find the modified version of the project previously provided. I have extended the example a bit in order to demonstrate how to use Html-like formatting, to format the text of the appointment.

Let me know how this works for you.
 
All the best,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Marek Kruk
Top achievements
Rank 1
answered on 06 Jul 2012, 12:46 PM
Hi,
unfortunately
does not work in my case (is still ;), forget about it because it is so important
0
Stefan
Telerik team
answered on 09 Jul 2012, 01:21 PM
Hi Marek,

I am not sure why this solution does not work in your case. If you want to have us look at it, please open a support ticket and attach your project there, so we can investigate it and find the what is preventing the formatting from applying.
 
Greetings,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Marek Kruk
Top achievements
Rank 1
answered on 09 Jul 2012, 03:13 PM
Thank you.
Tags
Scheduler and Reminder
Asked by
Marek Kruk
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Marek Kruk
Top achievements
Rank 1
Share this question
or