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

[Solved] AppointmentTemplate and Schedule as a Service

10 Answers 160 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
SolutionStream
Top achievements
Rank 1
SolutionStream asked on 08 May 2009, 04:00 PM
We are working with the Schedule control in our MVC project as a Service and need to do some AppointmentTemplate work.  Does this work?  Where would you put the AppointmentTemplate definition for the service to be able to use it?

10 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 11 May 2009, 11:14 AM
Hi Kier,

Templates are not supported in Web Service binding mode for RadScheduler.

Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
SolutionStream
Top achievements
Rank 1
answered on 11 May 2009, 03:05 PM
As this is required by the design of our product, do you have a schedule of, if and or when this might become available so that we can adjust our schedules?
0
Peter
Telerik team
answered on 11 May 2009, 04:07 PM
Hi Kier,

We might be able to provide you with a client side workaround. Please, specify what exactly you need to achieve.


All the best,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
SolutionStream
Top achievements
Rank 1
answered on 11 May 2009, 04:16 PM
I think I may have just found that workaround myself.  I was needing to put the following into the appointment:

AptType:                                              UserType: UserName
ClientId ClientName Phone                  AptStatus: Date UserName
 
I.e.

Consultation:                                        Consultant: John York
2399 Bill Stevens  801-555-1212         Appointment Set: 07/13/08 by Sara Douglas

I was able to achieve this by putting all this into a series of tables and div tags into the subject property.  It now looks like it should.  Does this sound like an ok solution?
0
Peter
Telerik team
answered on 12 May 2009, 12:21 PM

Yes, that's a nice solution. Thank you for posting it in the forum.


Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
SolutionStream
Top achievements
Rank 1
answered on 27 May 2009, 08:25 PM
One other question on this, I am able to override the title of my subject table title (tool tip) but cannot see a way to override the default tooltip that is in an appointment.

The result is, users that hover over my table see a nice title whereas users who hover over the delete or any other part of the appointment see my ugly html code that was placed in the subject field.

Ideas?
0
Peter
Telerik team
answered on 28 May 2009, 02:05 PM
Hi Kier,

Have you tried overriding the Tooltip in AppointmentDataBound like this:
protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)  
    {  
        e.Appointment.ToolTip = String.Empty;  
    } 

If this does not help, please send us the code of your implementation so we can test it locally.


Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
SolutionStream
Top achievements
Rank 1
answered on 28 May 2009, 02:45 PM
I did, but it seems that it does not get called when running as a service.
0
SolutionStream
Top achievements
Rank 1
answered on 28 May 2009, 03:19 PM
Update:

I did some searching and found this post: http://www.telerik.com/community/forums/aspnet-ajax/scheduler/colorpicker-scheduler.aspx that indicated that when using a service, we should use OnClientAppointmentCreated

When using this, I would like to take advantage of the new "Implemented support for custom appointment classes" feature found in the latest 2009.1.527 build.  Do you know of any documentation for this?
0
Accepted
T. Tsonev
Telerik team
answered on 01 Jun 2009, 08:07 AM
Hello Kier,

You can now use the resource-based appointment styling when implementing both server-side and Web Service data binding. The rules are defined in the same manner, as described here:
http://www.telerik.com/help/aspnet-ajax/appearance-setting-appointment-style.html
http://blogs.telerik.com/tsvetomirtsonev/posts/09-04-08/easy_appointment_styling_with_radscheduler_for_asp_net_ajax.aspx

You'll still need to handle the onClientAppointmentCreated event If you need to apply styles based on custom rules. The client-side appointment object has a set_cssClass method that you can use for that purpose.

Greetings,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler
Asked by
SolutionStream
Top achievements
Rank 1
Answers by
Peter
Telerik team
SolutionStream
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or