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

Drop an item on a calendar entry, not just the calendar

2 Answers 52 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 23 Jun 2011, 09:50 PM
I am looking to use the scheduler with some drag and drop functionality.  I have seen the sample on this site where you can drag tasks onto the calendar and it will assign it to the time slot you were hovering over.  In my scenario, I am going to have an appointment in the calendar already.  And I want to be able to drag an item onto that calendar entry and be able to tie the two objects together in our database on the back end.

Here is the real life scenario.  I have jobs in the calendar.  I have a list of resources on the left hand side outside of the calendar object.  I want to be able to grab a resource from the list, drag it over to a job in the calendar and be able to assign that resource to the job.  Is there a trigger on an appointment like that where I would be able to recognize that something is being dropped on the appointment and not necessarily a timeslot in the calendar?

2 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 28 Jun 2011, 04:34 PM
Hi Aaron,

Please find attached a sample project, which shows one possible way how to achieve it.

Hope it helps.

Kind regards,
Plamen Zdravkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Plamen
Telerik team
answered on 29 Jun 2011, 04:01 PM
Hi Aaron,

Here is a better looking  way to display the resources in the Appointment Template and in the same time check if it is null or not:

<AppointmentTemplate>
 
<%# Container.Appointment.Resources.GetResourceByType("User") == null ? String.Empty : Container.Appointment.Resources.GetResourceByType("User").Text%>
 
</AppointmentTemplate>

Hope this is useful.
 
Best wishes,
Plamen Zdravkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Scheduler
Asked by
Aaron
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or