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

Multiple Schedulers

1 Answer 36 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Lucas
Top achievements
Rank 1
Veteran
Lucas asked on 27 Oct 2020, 03:11 PM
Is it possible to have more than one RadScheduleView in a project with different styles?

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 30 Oct 2020, 08:30 AM

Hello Lucas,

You can have several RadScheduleView controls with a different style. You can create a custom Style for each control. Check the following code snippet, for example.

<Window.Resources>
    <Style x:Key="CustomStyle_1" TargetType="telerik:RadScheduleView" >
        <Setter Property="Background" Value="Red"/>
    </Style>
    <Style x:Key="CustomStyle_2" TargetType="telerik:RadScheduleView" >
        <Setter Property="Background" Value="Green"/>
    </Style>
</Window.Resources>
<Grid>
    <Grid.RowDefinitions>
        <RowDefinition />
        <RowDefinition/>
    </Grid.RowDefinitions>
    <telerik:RadScheduleView x:Name="scheduleView1" Style="{StaticResource CustomStyle_1}" Grid.Row="0"/>
    <telerik:RadScheduleView x:Name="scheduleView2" Style="{StaticResource CustomStyle_2}" Grid.Row="1"/>
</Grid>

The above code is just a sample. In your case, I guess that it will be more complicated. I am wondering do you mean by custom style to have a different theme for each control?

Regards,
Dinko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products, quickly just got a fresh new look + new and improved content, including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ScheduleView
Asked by
Lucas
Top achievements
Rank 1
Veteran
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or