Situation
In this situation i have 3 resources/columns in the scheduler.
Every resource/column has his own available times.
I have disabled the cells when the time is not available.
I want to drag and drop a appointment in an cell.
It has to check if that cell/timeslot is available.
Problem
I don't know how to check in which column the drag and drop cell is. So it checks all resources/Columns.
If in one resource/column a cell/time is disabled then it gives back that it is not available.
How can i check in which column the selected cell is?
In this situation i have 3 resources/columns in the scheduler.
Every resource/column has his own available times.
I have disabled the cells when the time is not available.
I want to drag and drop a appointment in an cell.
It has to check if that cell/timeslot is available.
Problem
I don't know how to check in which column the drag and drop cell is. So it checks all resources/Columns.
If in one resource/column a cell/time is disabled then it gives back that it is not available.
How can i check in which column the selected cell is?
private void radScheduler1_DragDrop(object sender, DragEventArgs e)
{
DragObject dragObject = e.Data.GetData(typeof(DragObject)) as DragObject;
Point point = this.radScheduler1.PointToClient(new Point(e.X, e.Y));
SchedulerDayViewGroupedByResourceElement groupedDayViewElement = this.radScheduler1.SchedulerElement.ViewElement as SchedulerDayViewGroupedByResourceElement;
SchedulerCellElement schedulerCell = SchedulerUIHelper.GetCellAtPoint(point, groupedDayViewElement.GetDayViewElements());
SchedulerCellElement schedulerCell2 = SchedulerUIHelper.GetCells(this.radScheduler1).Where(x => x.Date >= schedulerCell.Date && x.Date <= SchedulerCell.Date.AddMinutes(((double)dragObject.Values[Enums.AppointmentFields.Duration])-1)
&& x.Enabled == false).FirstOrDefault();