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

On AppointmentDataBound Resources not getting Load in RadScheduler

3 Answers 109 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tejas
Top achievements
Rank 1
Tejas asked on 01 Jul 2011, 12:37 PM
Hello ,

We are using Telerik's library for evaluation  purpose in our ASP.net project and all the controls working but RadScheduler behaving some thing differently.

I need one quick solution, I am using custom form but using your own Appointment class and binding appointments with multiple resources.Resource comes from different table.

I am able to bind them correctly but when my code point comes to AppointmentDataBound event I can not getting related resoource in
e.Resources part.

Appointment apt = new Appointment();
apt.Owner = rdScheduler;
apt.ID = 1;
apt.Subject = "MyOwn";
LoadTaskPersons(apt);    -->  loading Resource from this function.


Where I am missing ? please let me know what is the best practise to user multiple resource control with RadGrid.

Thanks in advance.
Tejas

3 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 06 Jul 2011, 09:47 AM
Hi Tejas,

Try to access the resources in the OnAppointmentCreated event instead of OnAppointmentDataBound via this code like in our "Multiple Resource Values" demo:
Resource room = e.Appointment.Resources.GetResourceByType("Room");


Greetings,
Veronica Milcheva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Tejas
Top achievements
Rank 1
answered on 06 Jul 2011, 09:52 AM
Thanks for the replay, I checked that and its working but I also need to check for the availabilty of the User resource from the server side for new meeting.

I need to create custom form like outlook's  create meeting.how can I show user meetings on same time slot and its availability ?

Thanks,
Tejas
0
Veronica
Telerik team
answered on 12 Jul 2011, 08:40 AM
Hello Tejas,

Please acept my apologies for the late reply.

Unfortunately I didn't understood your requirement. Could you please be more specific on what you mean by "create custom form like outlook's create meeting"?

Meantime please take a look this demo for "Resource Availability" as it may hit some light.

All the best,
Veronica Milcheva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Scheduler
Asked by
Tejas
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Tejas
Top achievements
Rank 1
Share this question
or