This is a migrated thread and some comments may be shown as answers.

Showing Tasks

4 Answers 50 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Pascal
Top achievements
Rank 1
Pascal asked on 19 Aug 2011, 08:58 AM

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

Sort by
0
Yana
Telerik team
answered on 25 Aug 2011, 03:48 PM
Hello Pascal,

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 >>

0
Pascal
Top achievements
Rank 1
answered on 26 Aug 2011, 07:56 AM

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.

0
Yana
Telerik team
answered on 26 Aug 2011, 12:14 PM
Hello Pascal,

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 >>

0
Ivo
Telerik team
answered on 29 Aug 2011, 03:31 PM
Hello Pascal,

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}" />
with this one: 
<TextBlock Width="200" Text="{Binding Name}" />
will fix it.

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 >>
Tags
ScheduleView
Asked by
Pascal
Top achievements
Rank 1
Answers by
Yana
Telerik team
Pascal
Top achievements
Rank 1
Ivo
Telerik team
Share this question
or