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

[Solved] Passing Resources to External Edit Radwindow

4 Answers 102 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
vassu
Top achievements
Rank 1
vassu asked on 14 May 2008, 02:37 PM
Hi.
I am using the scheduler in ResourceView mode and I am using an external add/edit custom RadWindow,

in the function AppointmentInserting(sender, eventArgs)

 I need the Resource.ID. and Resource Text.
I have tried the following things  without any luck:-

eventArgs.get_resource().key;
eventArgs.get_resource().key();
eventArgs.get_resource().get_key;
eventArgs.get_resource().get_key();

I am getting the following error:
'null' is null or not an object

Pls try to help me out as I am stuck up with this and can't proceed further.

Thanks,
Vassu



4 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 16 May 2008, 01:17 PM
Hello,

I am sorry for the delay. Here is the correct code:

eventArgs.get_targetSlot().get_resource().get_key()

Best wishes,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
vassu
Top achievements
Rank 1
answered on 19 May 2008, 06:20 AM
Hello Sir,
I tried the code which u had send:-
eventArgs.get_targetSlot().get_resource().get_key()

I am still getting a client side error
"Object doesn't support this property or method"

Regards,
Vassu


0
Accepted
T. Tsonev
Telerik team
answered on 19 May 2008, 08:06 AM
Hello Vassu,

I forgot to mention that this code works only with the Service Pack release (version 2008.1.515). Please, update your assembly. Sorry for the inconvenience.

Regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
vassu
Top achievements
Rank 1
answered on 19 May 2008, 10:31 AM

Hello Sir,
I have updated  to the latest Assembly (version 2008.1.515).
Now it works fine.

Thank u for the solution.

Thanks,
Vassu

Tags
Scheduler
Asked by
vassu
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
vassu
Top achievements
Rank 1
Share this question
or