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

Drag and drop RadGrid row onto RadCalendar day to set row date

1 Answer 54 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 11 Jul 2013, 03:15 PM
Hello,

I would like to know if it is possible to drag a row from a RadGrid onto a RadCalendar date, determine which date the row was dropped on, and then update the RadGrid data item with that date.  I have not been able to find a demo or example of this, and my preliminary efforts have not worked at all.  Using the client-side get_destinationHtmlElement method does not return the element/date the row was dropped on.

I can accomplish this with the RadScheduler, but not the RadCalendar.    Any help would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 16 Jul 2013, 11:54 AM
Hi Nick,

Actually you should be able to reference the HTML element over which the drop has occurred. As you can see from the attached sample once a grid row is dropped over a date an alert pops-up. Note that in order to update the grid data items you should fire an AJAX request, modify the grid's data source and rebind it.

Regards,
Angel Petrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Calendar
Asked by
Nick
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or