Hi,
I am currently using the UltraTimeLineView, and I was wondering if it was possible to "block" StartDateTime and EndDateTime of an appointment.
I want some appointment to be draggable across owners, but I don't want them to be moved in time.
Is there a way to do that ? (Except forcing the DateTime in the AppointmentDropped event)
Thank you.
Best regards.
Hi Guillaume,
We have a fast and easy way to achieve this, you need to set the 'AllowAppointmentResize' property on the 'UltraTimeLineView' control to 'false'.
Please feel free to let me know if a question about our tool set comes up on your mind.
Hi Boris,
Thank you for your answer. I already put this property on 'false', and this is not really what I meant.
This is an example of what I mean. I want to Drag/Drop the appointment accross owners, without changing the date during the dragging process. I don't know if this is possible...
Best regards,
Guillaume.
Hello Guillaume,
Thank you for the details, I understand now. Then the solution would be to the following in the already mentioned event:
void ultraTimelineView1_AppointmentsDragging(object sender, Infragistics.Win.UltraWinSchedule.AppointmentsDraggingEventArgs e)
{
if (e.NewDateTime != e.InitialDateTime)
e.Cancel = true;
}
Thank you but I already tried this one... I even made it more flexible like this :
void ultraTimelineView1_AppointmentsDragging(object sender, Infragistics.Win.UltraWinSchedule.AppointmentsDraggingEventArgse)
if (e.NewDateTime.Date != e.InitialDateTime.Date)
Anyway, thank you for your help. But I think there aren't any solution for what I want... I will probably have to code the whole process myself.
This is true and you are right, I believe. Many things are accomplished by using the events provided by the schedule controls and this one does not make an exception here.
Can I assist you with anything else?
No thank you Boris. I believe it's ok so far. Anyway, if I face any trouble, I will post a new message, or create a new topic ;)