i currently loop through a month view to find out if certain cells have been selected
i need to expand upon this, and check if any appointments already exist on a selected cell but cant seem to find any property or method within the cell item that will allow me to check this.
any help is greatly appreciated.
Cheers,
Craig
SchedulerMonthViewElement monthView = this.schRates.SchedulerElement.ViewElement as SchedulerMonthViewElement; |
Telerik.WinControls.RadElementCollection childrenCollection = monthView.Children[1].Children; |
DateTime startDate = DateTime.MinValue; |
DateTime endDate = DateTime.MinValue; |
foreach (MonthCellElement cell in childrenCollection) |
{ |
if (cell.Header.Selected == true) |
{ |
if (startDate == DateTime.MinValue) |
{ |
startDate = cell.Date; |
} |
else |
{ |
endDate = cell.Date; |
} |
} |
if (childrenCollection.IndexOf(cell) == 34) |
{ break; } |
} |
i need to expand upon this, and check if any appointments already exist on a selected cell but cant seem to find any property or method within the cell item that will allow me to check this.
any help is greatly appreciated.
Cheers,
Craig