We need a way to show tasks on the ScheduleView, just like outlook.
Because there is no footer yet, we would like to have the tasks in the header.
We use a week-view.
We have investigated the samples, but we get stuck on:
- having a Grid or List that shows the tasks, per day in the week in the header.
- resizing the window and keep the controls the same width as the day-column
- getting data in the tasks control using MVVM.
Can you help us in the right direction or with a sample?
4 Answers, 1 is accepted
I've attached a simple project which demonstrates how to use GroupHeaderContentTemplateSelector and add a listbox in the Date GroupHeaders of the WeekViewDefinition. In the Loaded event of the listbox you can add your custom logic to filter the tasks for the day (you should set ItemsSource property of the listbox).
We're not able to understand the second question about the resizing - can you please clarify it? it will be really helpful if you could send us some screenshots which illustrates the needed approach.
Kind regards,
Yana
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
Thank you for your sample,
unfortunately it is not working. The OrientedGroupHeaderContentTemplateSelector class
SelectTemplate method will never get an item which is a CollectionViewGroup.
Only DateTimes are coming in.
CollectionViewGroup cvg = item as CollectionViewGroup;
cvg is always null.
This results in a scheduleview without tasks.
We are using the latest internal builds.
I've checked the project again and it works without a problem at our side with the latest internal build (2011.2.823). Could you please check again the version of the dlls that are referenced in your project? Thanks
Kind regards,
Yana
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
We could not reproduce the problem you mentioned. However, we found a little issue into our sample project. When changing the visible week with the next and previous buttons the Group Headers didn't get updated. This is due to a broken binding into the DataTemplate. Changing this line:
<
TextBlock
Width
=
"200"
Text
=
"{Binding}"
/>
<
TextBlock
Width
=
"200"
Text
=
"{Binding Name}"
/>
An updated sample project is also attached.
Kind regards,
Ivo
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>