Right now, I have attached properties added to the month calendar control and based on the dates that are selected, i am switching the different schedule views and clearing the visible days and updating it with the selected date range.
Please Suggest.
Thanks in advance,
Hariharan
Thanks.That worked.
hariharan019 said: am also having an issue while removing a resource from the list at runtime. I assume that the scheduler supports adding and removing resources and resource calendars at runtime ?
Yes resources may be removed and the ui should be updated. It could be the same type of timing issue you had with adding the resources. If you still have an issue then please post an updated sample that demonstrates the issue with removing the resources.
hariharan019 said:Next Type any name in the textbox below and click on the "Add" Button. This adds a new resource , and the calendar and creates the calendar group, but the calendar is not visible in the scheduler
private void OnCalendarsChanged(object sender, NotifyCollectionChangedEventArgs e) { this.Dispatcher.BeginInvoke(new NotifyCollectionChangedEventHandler(this.OnCalendarsChangedImpl), sender, e); } private void OnCalendarsChangedImpl(object sender, NotifyCollectionChangedEventArgs e) { /// this is where you do what you originally had in the OnCalendarsChanged...
private void OnCalendarsChangedImpl(object sender, NotifyCollectionChangedEventArgs e) { /// this is where you do what you originally had in the OnCalendarsChanged...
I am also having an issue while removing a resource from the list at runtime. I assume that the scheduler supports adding and removing resources and resource calendars at runtime ?
Please review the sample project attached in my previous post and suggest a response.
Thank You,
Have you had a chance to look at my attached sample project?