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

How to Get the current resource on AppointmentInsert Event

1 Answer 40 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Fernando Fonseca
Top achievements
Rank 1
Fernando Fonseca asked on 20 Oct 2010, 03:26 AM
Hello... we're new to telerik controls, and so far i love them but I am facing a little problem:
I'm using a RadScheduler and using resources and grouping them just like the resources example.
on the AppointmentInsert event i have no problem getting the Subject, Start and End date, but since im usin resources i need to find a way to get the current resource so i can insert to the DB.

Thank you very much in advance.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 22 Oct 2010, 04:57 PM
Hi Fernando,


Please, refer to the Defining Resources demo and the Database structure help topic. To get a resource from code behind, you can use the following code:

e.Appointment.Resources.GetResourceByType("User")

where "User" is the resource type name.


Greetings,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
Fernando Fonseca
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or