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

SchedulerAppointment get_resources()

2 Answers 71 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Brian Lehmann
Top achievements
Rank 2
Brian Lehmann asked on 23 Apr 2009, 03:01 PM
I've recently been playing around with porting an application that uses RadScheduler over to the ASP.NET MVC platform which has had me digging around in the client side API to do some the customizations I was previously doing in code behind. In looking at ways to customize appointments based on the Resource they "belong to", I came across this post that mentions that the SchedulerAppointment object has a get_resources() method for retrieving assigned Resources. However, the documentation for SchedulerAppointment doesn't mention this. Before I commit too much to that technique, I wanted to make sure this was just an ommision in the docs and not due to that method being deprecated or unsupported. Is that routine going to be maintained on the client side in future releases?

Also, there appears to be a typo in the documentation for the SchedulerResourceCollection (which is returned by the get_resources() method). It mentions a getResourceByType method which through trial appears to actually be getResourcesByType.

Thanks for the great control libraries and as always your great support!

2 Answers, 1 is accepted

Sort by
0
Brian Lehmann
Top achievements
Rank 2
answered on 23 Apr 2009, 03:30 PM
Sorry! Just realized I clicked the wrong forum when I created this . . . it's supposed to be in the RadScheduler forum . . . not sure if it's possible to move it.
0
Peter
Telerik team
answered on 27 Apr 2009, 10:38 AM
Hi Brian,

Thank you for this observation. The get_resources() method is not deprecated - it has just not been listed. I have now documented it and it will appear with the next update of the online help.
 
Also, you are right about getResourcesByType. I have corrected this too. 

Here is how you can find the appointment's resource on the client:

eventArgs.get_appointment().get_resources().getResourcesByType("User").getResource(0).get_key()

Let us know if you have any other questions or concerns.


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.
Tags
Rotator
Asked by
Brian Lehmann
Top achievements
Rank 2
Answers by
Brian Lehmann
Top achievements
Rank 2
Peter
Telerik team
Share this question
or