Drag and Drop Validation in RadSchedulerView

2 posts, 0 answers
  1. Jobin
    Jobin avatar
    4 posts
    Member since:
    Sep 2011

    Posted 31 Dec 2011 Link to this post

    Hi Telerik,

        I am Trying to implement the Drag and Drop Functionality between Radschedulerview and ListBox.  In the Behaviour class i have override the Drop method and there i got my custom appointment Class though State and i can add it to the destination source and the new dragged item will be displayed in my schedule view.Now i want to Validate before the items is dropped into a  Particular Slot so that i can check whether the slot is already occupied with an Appointment.I already tried with CanDrop event.

    But the problem i am facing is that whenever the items is dragged from source and passed through any Slots this event is triggered
    in which i didn't need any Validations.

    Ex.Suppose my Destination slot is '27',i need validation only on slot 27.But event is triggered,and validation occurs whenever the dragged items passed through any slots other than 27th.So that validation is not performing correctly.

    How can i achieve Implementing the Validation only at the Destination Slot?

    Any Help would be Apprieciated.
  2. Yana
    Yana avatar
    4602 posts

    Posted 04 Jan 2012 Link to this post

    Hi Jobin,

    Please check this forum thread where it is demonstrated how you can implement ConflictCheckingDragDropBehavior.

    Hope this helps.

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top