appointment change text problem

8 posts, 0 answers
  1. Marek Kruk
    Marek Kruk avatar
    16 posts
    Member since:
    Mar 2009

    Posted 26 Jun 2012 Link to this post

    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

  2. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 28 Jun 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Marek Kruk
    Marek Kruk avatar
    16 posts
    Member since:
    Mar 2009

    Posted 28 Jun 2012 Link to this post

    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.
  5. Marek Kruk
    Marek Kruk avatar
    16 posts
    Member since:
    Mar 2009

    Posted 28 Jun 2012 Link to this post

    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.
  6. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 03 Jul 2012 Link to this post

    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 >>
  7. Marek Kruk
    Marek Kruk avatar
    16 posts
    Member since:
    Mar 2009

    Posted 06 Jul 2012 Link to this post

    Hi,
    unfortunately
    does not work in my case (is still ;), forget about it because it is so important
  8. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 09 Jul 2012 Link to this post

    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 >>
  9. Marek Kruk
    Marek Kruk avatar
    16 posts
    Member since:
    Mar 2009

    Posted 09 Jul 2012 Link to this post

    Thank you.
Back to Top
UI for WinForms is Visual Studio 2017 Ready