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

ScheduleView - YearView

3 Answers 79 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
JIG
Top achievements
Rank 1
JIG asked on 20 Dec 2016, 12:48 PM

Hi,

I'm working on holiday tool in a WPF application. I was wondering if it was possible to have a yearview (like you can see in the screenshot) as a radscheduleView. I was able to create the grid like this. But now I'm stuck loading the data. I'm able to load data, but only from 1 month.. Setting year to 2016, will only load data from January 2016. When I set datepicker to be able to select Month and Year, he will show data from february in the February column...

Is there a way to have a data from the whole year is this grid?

 

If you need more information, do not hestitate to contact.

Thanks in adavance.

 

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 22 Dec 2016, 08:25 AM
Hello,

Currently you could achieve some kind of YearView with RadScheduleView by customizing the TimelineViewDefinition and more specifically its GroupTickLength property. 

Please take a look at our SDK example from the XAML Repository at the following link:
https://github.com/telerik/xaml-sdk/tree/master/ScheduleView/MonthTickProvider

The appointments should be loaded correctly according to their Start/End times.

If you have any questions or concerns regarding the approach, let us know.

Regards,
Yana
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
JIG
Top achievements
Rank 1
answered on 30 Dec 2016, 10:59 AM

Hi,

Unfortunately this is not what i wanted. I want an overview of the holiday for a full year. But I found a solution how to achieve. (See attachment)

 

Kind regards

 

0
Yana
Telerik team
answered on 04 Jan 2017, 11:12 AM
Hi,

RadScheduleView does not provide such a built-in view as in the screenshot, but you could achieve similar result with Vertical oriented TimelineViewDefinition and by adding the Months as resources. 
Please check the following snippet which demonstrates the approach:

<telerik:RadScheduleView x:Name="ScheduleView">
    <telerik:RadScheduleView.ResourceTypesSource>
        <telerik:ResourceTypeCollection>
            <telerik:ResourceType Name="Month">
                <telerik:Resource DisplayName="January" />
                <telerik:Resource DisplayName="February" />
                <telerik:Resource DisplayName="March" />
                <telerik:Resource DisplayName="April" />
                <telerik:Resource DisplayName="May" />
                <telerik:Resource DisplayName="June" />
            </telerik:ResourceType>
        </telerik:ResourceTypeCollection>
    </telerik:RadScheduleView.ResourceTypesSource>
    <telerik:RadScheduleView.GroupDescriptionsSource>
        <telerik:GroupDescriptionCollection>
            <telerik:ResourceGroupDescription ResourceType="Month" />
        </telerik:GroupDescriptionCollection>
    </telerik:RadScheduleView.GroupDescriptionsSource>
    <telerik:RadScheduleView.ViewDefinitions>
        <telerik:TimelineViewDefinition Orientation="Vertical" />
    </telerik:RadScheduleView.ViewDefinitions>
</telerik:RadScheduleView>

Additionally, you could configure the MajorTickLength/MinorTickLength settings as well as the format of the dates according to the specific requirements.

Hope this will be helpful.

Regards,
Yana
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ScheduleView
Asked by
JIG
Top achievements
Rank 1
Answers by
Yana
Telerik team
JIG
Top achievements
Rank 1
Share this question
or