Hi,We are using Infragistics 15.2 in our vast project. We are facing a challenge with UltraWinSchedule controls for UltraDayView.The UltraDayView controls is binded with UltraCalendarInfo and it will take care of resources and appointments for that. We have created a week control using the existing UltraDayView control and changing the grouping style according the Day or Week in a view. We have applied a caledar look with some customized appearance and we are not using the Outlook style for that. We have also used a CreationFilter to draw the appointments, tooltip, subject, etc. We tried expanding the DayViewHeaderAreaUIElement in creation filter but didn't succeed. How can I have a similar Week like in Outlook. Here we are not allowed to use Outlook style because in outlook style the same is already been created.Could you please help us on this as early as possible?Thanks & Regards,Ashish
Hi Ashish,
Okay... let me know how it goes. :)
Hi Mike,
Thanks for the sample. I will take this for my reference and will try adding new UIElement as per your suggestion and check if it works.
Thanks & Regards,
Ashish
Since I did a bunch of experimenting with this, I figured I'd post my sample here in case you want to continue with it.
Basically, I got as far as adjusting the positions of the HeadingAreaUIElement and the AllDayEventAreaUIElement. And I even added in a HeaderUIElementBase for each day.
My header UIElement doesn't display anything though. You'd have to implement InitAppearance, PositionChildElements, and perhaps some other methods in order to get it to show the background and text. And it would presumably need a Caption or Text property, which you would set when you create it.
Hi,
Okay, so I started to take a look at this and I'm still not sure if this is possible. If it is possible, it's not going to be easy.
You mentioned that you tried to expand the DayViewHeaderAreaUIElement. There's no UIElement by that name, so I assume you meant the HeadingAreaUIElement. But expanding this element would be extremely tricky. The element encompasses the top part of the DayView. So that includes the owner header, the day headers, and the AllDayEventArea. Increasing the height of this element would make it overlap the elements below. So that means you would also have to adjust the Y and the height of the DayAreaUIElement, which is where the timeslots display. In addition, the TileSlotDescriptorUIElement on the left would also have to be adjusted in order to line up with the time slots. So this would be very complex and it's entirely possible that this would not even work correctly, since the control might have it's own internal metrics which do not account for resizing those elements.
A simpler option would be to leave the height of the HeadingAreaUIElement and adjust the height of the AllDayEventAreaUIElement. So the headers space is essentially taken away from the AllDayEventArea, instead of messing with the DayAreaUIElement and the time slots.
You would then have to create a UIElement for the header. You will probably want to derive a class from HeaderUIElementBase. You'd have to override PositionChildElements on this new UIElement and add a TextUIElement and apply whatever text you want to it.
Frankly, I think this is probably a lot more work and a lot more difficult than it's worth. I spent some time trying to whip up a sample but I ran into a lot of very time-consuming coding issues, so this is going to be beyond the normal scope of what we can do in a support case.
You can Submit a Feature Request and maybe we can add a feature for this in some future version.
Thanks for the sample and sorry for the confusion. The creation filter was for your reference only that was partially implemented.
Mike Saltzman said:So what you want is to leave the day names as they are and then show a second row of headers underneath the day names that shows the date or the day number? Is that right?
Also please do not consider the MS Outlook screenshot which was attached in initial post.
Mike Saltzman said:Regarding the separator between owners - I'm not seeing a separator in my sample, regardless of whether I select a week or a single day. Is that something you did with your CreationFilter?