6 Answers, 1 is accepted
0
Hi Manuele,
Thank you for writing.
Please refer to the AppointmentTitleFormat property information in the following article: http://www.telerik.com/help/winforms/scheduler-appointments-and-dialogs-working-with-appointments.html.
I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.
Regards,
Stefan
Telerik
Thank you for writing.
Please refer to the AppointmentTitleFormat property information in the following article: http://www.telerik.com/help/winforms/scheduler-appointments-and-dialogs-working-with-appointments.html.
I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.
Regards,
Stefan
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
manuele
Top achievements
Rank 1
answered on 13 Mar 2015, 07:43 AM
Hi, thank you so much
I have tried like this:
Me.RadScheduler1.AppointmentTitleFormat = "{6}{2}{7}"
It's works but i would like to remove semicolon, is it possible?
I have tried like this:
Me.RadScheduler1.AppointmentTitleFormat = "{6}{2}{7}"
It's works but i would like to remove semicolon, is it possible?
0
Accepted
Hi Manuele,
Unfortunately, the semi column cannot be removed at present. What I can do for you is to expose the method responsible for creating the text, so you can customize it. This can be included in the upcoming service pack in the beginning of April. If this is OK for you, here is the code which you would be using with our new version:
I hope that you find this information.
Regards,
Stefan
Telerik
Unfortunately, the semi column cannot be removed at present. What I can do for you is to expose the method responsible for creating the text, so you can customize it. This can be included in the upcoming service pack in the beginning of April. If this is OK for you, here is the code which you would be using with our new version:
Protected
Overrides
Sub
OnLoad(e
As
EventArgs)
MyBase
.OnLoad(e)
AddScheduler()
Me
.radScheduler1.AppointmentTitleFormat =
"{6}{2}{7}"
radScheduler1.ElementProvider =
New
MyElementProvider(radScheduler1)
End
Sub
Public
Class
MyElementProvider
Inherits
SchedulerElementProvider
Public
Sub
New
(scheduler
As
RadScheduler)
MyBase
.
New
(scheduler)
End
Sub
Protected
Overrides
Function
CreateElement(Of T
As
SchedulerVisualElement)(view
As
SchedulerView, context
As
Object
)
As
T
If
GetType
(T)
Is
GetType
(AppointmentElement)
Then
Return
TryCast(
New
MyAppointmentElement(
Me
.Scheduler, view,
CType
(context, IEvent)), T)
End
If
Return
MyBase
.CreateElement(Of T)(view, context)
End
Function
End
Class
Public
Class
MyAppointmentElement
Inherits
AppointmentElement
Public
Sub
New
(scheduler
As
RadScheduler, view
As
SchedulerView, appointment
As
IEvent)
MyBase
.
New
(scheduler, view, appointment)
End
Sub
Protected
Overrides
Function
CreateAppointmentText()
As
String
Return
MyBase
.CreateAppointmentText().Replace(
";"
,
""
)
End
Function
End
Class
I hope that you find this information.
Regards,
Stefan
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
manuele
Top achievements
Rank 1
answered on 13 Mar 2015, 10:51 AM
For me it is ok, but i have just one last problem:
When i try to override CreateAppointment function i get an error
it seems that the function is private
Thanks a lot
When i try to override CreateAppointment function i get an error
it seems that the function is private
Thanks a lot
0
That is correct. I mentioned that in my previous post. I have exposed this method and this will be included in the upcoming service pack in the beginning of April. Once we release it, you can download it and you can apply the above code with it.
I hope this clears things up.
Regards,
Stefan
Telerik
I hope this clears things up.
Regards,
Stefan
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0
manuele
Top achievements
Rank 1
answered on 13 Mar 2015, 03:10 PM
Ok, thanks