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

Insert appoinment in advanced window

2 Answers 34 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 26 Jun 2008, 09:59 AM
Hi

When I double click to add a new appointment it opens in an advanced window. How can I get the resource that I clicked on? So if the resources are users with a userid how would I be able to get their 'key' from the resource collection?

Or do I have to pass it somehow in the query string?

Thanks
Jon

2 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 27 Jun 2008, 11:14 AM
Hi Jonathan,

You can access the resource through the targetSlot property of the eventArgs. For example:
eventArgs.get_targetSlot().get_resource().get_key()

I have just noticed that the documentation is not updated for this property. We will take care of this. Sorry for the inconvenience.

Greetings,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jonathan
Top achievements
Rank 1
answered on 27 Jun 2008, 11:21 AM
Excellent, that's exactly what I needed.

For those who also want to do this in a context menu you can use

contextMenuSlot.get_resource().get_key()
Tags
Scheduler
Asked by
Jonathan
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Jonathan
Top achievements
Rank 1
Share this question
or