i have a little function that will loop through an active view and unselect any cells that have been selected
but i would like something similar to unselect any appointments but cant seem to find a way?? something like the following.......
Any help is greatly appreciated,
Cheers,
Craig
private void UnselectCells() |
{ |
SchedulerMonthViewElement monthView = this.schRates.SchedulerElement.ViewElement as SchedulerMonthViewElement; |
Telerik.WinControls.RadElementCollection childrenCollection = monthView.Children[1].Children; |
foreach (MonthCellElement cell in childrenCollection) |
{ |
if (cell.Header.Selected == true) |
{ |
cell.Header.Selected = false; |
} |
if (childrenCollection.IndexOf(cell) == 34) |
{ break; } |
} |
} |
but i would like something similar to unselect any appointments but cant seem to find a way?? something like the following.......
private void UnselectAppointments() |
{ |
foreach (IEvent appointment in this.schRates.ActiveView.Appointments) |
{ |
if (appointment.Selected == true) |
{ |
appointment.Selected == false; |
} |
} |
} |
Any help is greatly appreciated,
Cheers,
Craig