Hi!
I seek to select an appointment by code but I do not arrive there
I try this :
myAppointment.Selected = true; (but the property keep false)
and :
CalendarInfo.SelectedAppointments.Add(myAppointments);
Thanks for help me!
Fab
PS : sorry for my english
I was not able to reproduce the behavior you describe here with a simple test. If you can post a brief code sample that demonstrates the problem, we can take a look and try to help.
Yes i must describe more..
I create a UserControl where when you do a right clic on an Appointement i get the Appointment (with the mouse location) and, in the event, i need change the Selected Appointement
private void uc_monthViewer_MouseDown(object sender, MouseEventArgs e)
{
Appointment oAppointement = uc_monthViewer.GetAppointmentFromPoint(e.Location);
if (oAppointement != null && e.Button == MouseButtons.Right)
_oCalendarInfo.SelectedAppointments.Clear();
_oCalendarInfo.SelectedAppointments.Add(oAppointement);
// or this : _oAppointement.Selected = true;
}
Thanks u for your help
I am still not able to reproduce this problem. One thing to note is that the Appointment must belong to the UltraCalendarInfo.Appointments collection in order to be selected. If you are able, attach a simple sample that demonstrates the problem to this thread and we can take a closer look.
We have the same behaviour.
CalendarInfo.SelectedAppointments.Add(oAppointement); does not select the appointment in dayView