I have an UltraTimelineView with appointments in it. Lets say, I have these three appointments for 1 owner:
A1: 08:00 AM - 12:00 AM
A2: 1:00 PM - 5:00 PM
A3: 8:30 AM - 9:00 AM
So the output will produce 2 "rows" of appointments. In row 1 there is A1 and A2. In row 2 there is A3. Hope you can still follow ...
Now, I start dragging A3 to the right. As soon as A3 hits the gap between A1 and A2 the appointment jumps to row 1. There is my problem: I don't want that to happen. I want it to keep the initial Y position of the appointment.
I haven't found any properties related to that, so I tried the DrawFilter. In the GetPhasesToFilter Method I hooked up the AppointmentUIElement in the BeforeDrawElement Phase. For testing purposes I offset the AppointmentUIElement for 10 pixels (Y) and return true to keep the internal drawing routine. This don't work: The appointment isn't drawn or only a part of the border is drawn. It is somehow fully drawn as soon as I lift the mousebutton (I am still in the drag'n'drop operation) AND move the cursor at least 1 pixel. But the appointment isn't drawn completely. A border with a width of 1 pixel is missing. Its not the outer border of the AppointmentUIElement, but I think the inner border of the EditorWithTextDisplayTextUIElement of the AppointmentUIElement.
So, is there a way to keep the Y position of an appointment that I drag and drop? (I use IG v10.3, Visual Studio 2010, C#)
Hi,
I want this same feature too.
how can we prevent the control alters the Y position of the appointment?
Running 2016.2
Pure speculation since I'm not looking at the code but one thing to note is that the AppointmentUIElement does not draw its left/right borders when the start/end time coincides with a time that is currently not visible on the timeline.
Thanks for the quick answer Brian.
Thats too bad, because we then can't use the TimelineView. I have also tried the GanttView, that has some problems too. See http://forums.infragistics.com/forums/t/51885.aspx
But the question with the offset of the AppointmentUIElement is still not answered. Do you have any idea why the Appointment isn't drawn correctly when I offset it's UIElement?
Stefan Oellerich said:So, is there a way to keep the Y position of an appointment that I drag and drop?