Showing Tasks

5 posts, 0 answers
  1. Pascal
    Pascal avatar
    11 posts
    Member since:
    Jul 2010

    Posted 19 Aug 2011 Link to this post

    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?

  2. Yana
    Admin
    Yana avatar
    4731 posts

    Posted 25 Aug 2011 Link to this post

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

  3. Pascal
    Pascal avatar
    11 posts
    Member since:
    Jul 2010

    Posted 26 Aug 2011 Link to this post

    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.

  4. Yana
    Admin
    Yana avatar
    4731 posts

    Posted 26 Aug 2011 Link to this post

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

  5. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 29 Aug 2011 Link to this post

    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 >>
Back to Top