Hi, I am using Infragistics 7.2 WebDayView (it comes with the SImaticIT portal) to show shifts pattern for all days in a week. I have a custom DataProvider that creates the appointmets (adapted the code from the sample). All works fine until the page is displayed - all the shifts (a.k.a. appointments) are shown as all day events, i.e. just a bar on top and that's it. All the shifts are 8-hour activities, no way that they could be all day events. I explicitly set the AllDayEvent property to false but no cigar. I thought for a minute that I could change this property in PageLoad but apparently the DataProvider is called later. Is there a remedy or an event that I can use to fix this? Thanks a mil
Check the Duration (or subtract StartDateTimeUtc from EndDateTimeUtc) properties just to confirm that the appointments are 8 hours. If they are 24 hours, or they span across multiple dates, then they will show up as all-day or multi-day events, respectively.
You should be able to force the DataBind to happen from the data provider by calling DataBind( ) on your WebScheduleInfo, then you can examine any Activity in its Activities collection. After it has been databound, you should be able to force property values to what you want (but you'd have to do that each postback.) If you never call DataBind( ), WebScheduleInfo waits until the last moment to do so just-in-time.
Hi, thanks for a timely response! However, I checked all that already. It really is weird behaviour, I am sure it's due to some mussing setting but I have no idea which. PageLoad() calls DataBind() on the WebScheduleInfo, I am checking the properties and all Activities have the AllDayEvent set to false. Then the page is rendered and are AllDayEvents. Does not make much sense. The ActiveResource is set to UnassignedResource, basically all the setting is taken from the sample code. I'm lost for ideas at the moment. I even tried to use the DataBinding event but to no avail.