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

Drag and Drop Validation in RadSchedulerView

1 Answer 79 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Jobin
Top achievements
Rank 1
Jobin asked on 31 Dec 2011, 10:02 AM
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.

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 04 Jan 2012, 01:59 PM
Hi Jobin,

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

Hope this helps.

Kind regards,
Yana
the Telerik team

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

Tags
ScheduleView
Asked by
Jobin
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or