Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
875
UltraDayView Control - TimeSlotIntervals
posted

Hello,

I've upgraded to the latest release of win form controls (13.1 (from 8.3), I'm not sure exactly which version as I no longer see the assemblies in the GAC).

Having been through our system looking for potential issues, I've noticed that our UltraDayView control doesn't appear to be showing the time slots correctly.

The working day is between 8am and 5pm, however after 5pm I see an empty space. It's almost like the control isn't sizing the slots correctly to fill the space. This only happens when using a TimeSlotInterval of 60 minutes, 30 minutes and below appears to be fine. Also, it doesn't matter if you change the end of day to say 10pm, it does the same.

You can download a sample showing the issue here:

http://www.andrewburrow.net/SharedFiles/Download.aspx?pageid=40&mid=83&fileid=538

or by either browsing to http://www.andrewburrow.net/public-files.aspx, selecting the Infragistic Samples folder and selecting to download UltraDayView.zip.

System Information: Visual Studio 2010, .net 4.0, Infragistics 13.1, x64 Application, Windows 7 x64

Source code is simply doing this (with the UltraDayView dock set to fill):

private void Form1_Load(object sender, EventArgs e)
        {
            ultraDayView1.CalendarInfo.LogicalDayOffset = new TimeSpan(8, 0, 0);
            ultraDayView1.CalendarInfo.LogicalDayDuration = new TimeSpan(9, 0, 0);
            ultraDayView1.TimeSlotInterval = TimeSlotInterval.SixtyMinutes;
        }

Thanks
Andrew