Hi
Is there a way I can customize the time slot panel in XAMSchedule dayview.
1) What I want to do is to Run the time slot panel from say 6am Sunday to 5am Monday (i.e. I Still have 24hrs a day but my day Starts from 6am today and ends at 5am tomorrow). I should be able to still call it Sunday.
2) If 1 is possible can I also change the display time as start from 6 to 30 hr. clock(Just the display of time) (i.e. so instead of displaying 1,2,3 …..23 can I display 6,7,8…….28, 29,30
If the above 1 and 2 is not possible
1) Then can i just change the timeslot to display time in 6 to 30 hr. clock style.
2) And disable primary time zone and just display the secondary time zone.
I have attached the screen shots to explain waht i ment.
Regards
Saurabh
Hi Andrew,
thanks for the reply. This works fine now.
Best Regards,
Steven
A converter of a Binding is only called when the source value changes or in the case of a multibinding when one of the values of one of the bindings has changed. Scrolling horizontally would not result in a change to the window's datacontext, the start time of the timeslot, the end time of the timeslot and typically not the IsWorkingHour state so what is happening is correct based on the bindings. If you want to account for when it's changed for a different calendar then you'll likely want to add another binding - e.g. for the DataContext of the timeslot itself since that would be the selected calendar of the containing calendar group. So add something like "<Binding Path="DataContext" RelativeSource="{RelativeSource Self}" />" to the end of the list of Bindings in the MultiBinding. You'll also need to update the converter because in the sample it is checking for a length of 4 values being provided. I attached an updated version of the sample from above but that's the only changes I made.
Hi Stefan,
The TimeslotTypeValueConverter get triggered fine, if I scroll up and down the vertical scrollbar.
But similarly to http://ko.infragistics.com/community/forums/t/84840.aspx
In DayView, I have set dayView.PreferredCalendarGroupExtent = 150;
Hence when there is a lot of ResourceCalendar visible, the 'TimeslotGroupScrollBar" will appear.
scrolling left and right this horizontal scrollbar DOES NOT trigger the TimeslotTypeValueConverter, hence I am showing timeslots that don't belong to the scrolled resource.
Is there a way to fix this? Thanks
I actually found the way to do this. All I needed is to get the list of timeslots and update binding. That was all.
Thanks for you help
Hello Steven,
it seems like that I am missing something in your scenario, so feel free to modify the sample I sent you, so it reproduces your behavior and send it back to me for further investigation.
Looking forward for your reply.