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

3 posts, 0 answers
  1. Aaron
    Aaron avatar
    1 posts
    Member since:
    Nov 2010

    Posted 23 Jun 2011 Link to this post

    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. Plamen
    Admin
    Plamen avatar
    2939 posts

    Posted 28 Jun 2011 Link to this post

    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.

  3. Plamen
    Admin
    Plamen avatar
    2939 posts

    Posted 29 Jun 2011 Link to this post

    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.

Back to Top