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
If you want your day to be considered as starting at 6am and ending at 6am of the following day (instead of 12am to 12am) then you can set the XamScheduleDataManager->Settings->LogicalDayOffset to 6 hours. This will affect all controls associated with the datamanager. So if the VisibleDates of day/scheduleview contains 2/25/2011, you would see the timeslots (and any activity) for 2/25/2011 6:00am to 2/26/2011 6am. If you had a xamMonthView showing the weeks for Feb 2011 and you look at Thursday 2/25/2011, you would see any activity that intersects 2/25/2011 6:00am to 2/26/2011 6am. If you had an activity that started on 2/25/2011 5:00am and end on 2/25/2011 5:30 am, it would show up under Wed 2/24/2011.
Thanks Andrew,
Sorry i am new to .net and WPF.
I have trie it by setting
dataManager.Settings.LogicalDayOffset = new System.TimeSpan(6, 0, 0);
bu i keep getting exception 'Object reference not set to an instance of an object.'
Hope you can help if i am doing something very stupid.
I have another question. How can I trigger the TimeSlot to refresh?
Hello,
Could please be more specific what do you mean by “refresh TimeSlot” and what is the result/functionality you want to achieve.
Looking forward for your reply.
Hi Stefan,
What I meant is that the sample given works fine when the timeslot gets created it binds to the custom properties.
But what if the custom properties changes and we need to time slot to rebind?
Hello Steven,
I have modified the sample Andrew uploaded, so now there is a Button which changes the Properties of one of the Appointments and everything seems to update properly on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Andrew's example is about TimeSlots not Appointments. I was asking about how to trigger the TimeSlot to refresh.
Does my question make sense?
Best Regards,
Steven
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
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.