How to change the theme for radcalendar

7 posts, 0 answers
  1. Pam
    Pam avatar
    3 posts
    Member since:
    Sep 2012

    Posted 11 Jul 2011 Link to this post

    Hi,

    Your Calendar theming example shows the different telerik themes available for radcalendar. But it is unclear in your code as to how I can change the theme for my radcalendar. Please explain..

    Thanks,
    Amudha
  2. Pam
    Pam avatar
    3 posts
    Member since:
    Sep 2012

    Posted 11 Jul 2011 Link to this post

    Found the solution. Thanks!
  3. DevCraft banner
  4. Dani
    Admin
    Dani avatar
    848 posts

    Posted 13 Jul 2011 Link to this post

    Hi Amudha,

    You can apply a theme very easily using the follwong syntax:
    <telerik:RadCalendar telerik:StyleManager.Theme="Vista" />


    All the best,
    Dani
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  5. Kamasani
    Kamasani avatar
    3 posts
    Member since:
    Oct 2011

    Posted 26 Oct 2011 Link to this post

    Hi I am trying to apply theme to the sample example provided but not able to see the changed themp please find the full aml code below

     

     

     

    <

     

     

    UserControl x:Class="Bulkmailapplication.MainPage"

     

     

     

     

     

     

     

     

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

     

     

     

     

     

     

     

     

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

     

     

     

     

     

     

     

     

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

     

     

     

     

     

     

     

     

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

     

     

     

     

     

     

     

     

    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

     

     

     

     

     

     

     

     

    xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls"

     

     

     

     

     

     

     

     

    xmlns:local="clr-namespace:Bulkmailapplication"

     

     

     

     

     

     

     

     

    mc:Ignorable="d" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"

     

     

     

     

     

     

     

     

    d:DesignHeight="300" d:DesignWidth="400" >

     

     

     

     

     

     

     

     

     

    <UserControl.Resources>

     

     

     

     

     

     

     

     

     

    <telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />

     

     

     

     

     

     

     

     

     

    </UserControl.Resources>

     

     

     

     

     

     

     

     

     

    <Grid HorizontalAlignment="Stretch" telerik:StyleManager.Theme="" >

     

     

     

     

     

     

     

     

     

    <Grid.RowDefinitions>

     

     

     

     

     

     

     

     

     

    <RowDefinition Height="Auto" />

     

     

     

     

     

     

     

     

     

    <RowDefinition />

     

     

     

     

     

     

     

     

     

    </Grid.RowDefinitions>

     

     

     

     

     

     

     

     

     

    <telerik:RadButton Click="Button_Click" Grid.Row="0" HorizontalAlignment="Center" Content="Load Appointments" FontWeight="Bold" Margin="12" Padding="18 4" />

     

     

     

     

     

     

     

     

     

    <telerik:RadBusyIndicator x:Name="busyIndicator" Grid.Row="1" BusyContent="Loading data....">

     

     

     

     

     

     

     

     

     

    <telerik:RadScheduler telerik:StyleManager.Theme="Windows7" x:Name="scheduler" ViewMode="Day" />

     

     

     

     

     

     

     

     

     

    </telerik:RadBusyIndicator>

     

     

     

     

     

     

     

     

     

    </Grid>

     

    </

     

     

    UserControl>

     

     

     

     

     

  6. Dani
    Admin
    Dani avatar
    848 posts

    Posted 27 Oct 2011 Link to this post

    Hello Kamasani,

    You cannot set a Telerik theme to the <Grid /> panel. The Grid does not have any visual representation and is not themable via our themes.

    You can try setting an application theme, if you wish for all controls to pick up the theme in your UserControl:

    public partial class MainPage : UserControl
        {
            public MainPage()
            {
                StyleManager.ApplicationTheme = new VistaTheme();
                // Required to initialize variables
                InitializeComponent();
            }
        }

    Please, note that MS native controls, such as ScrollViewer, Listbox, TextBox, etc. will not pick up the application theme and need to have their theme set explicitly.

    I hope this helps.

    All the best,
    Dani
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  7. Kamasani
    Kamasani avatar
    3 posts
    Member since:
    Oct 2011

    Posted 28 Oct 2011 Link to this post

    Hi Thanks for the quick response.
    I did the same as directed but the page is leep on loading no output. if i comet the line
    StyleManager.ApplicationTheme = new VistaTheme();
    It is working fine please let me know how can i proceed
  8. Dani
    Admin
    Dani avatar
    848 posts

    Posted 28 Oct 2011 Link to this post

    Hi Kamasani,

    Since there is no RadCalendar in the xaml you provided, my supposition is that you are referring to RadScheduler.

    Please, check the attached very basic sample. It demonstrates how you can apply an application theme to a Silverlight application containing RadControls, including the RadScheduler control.

    If you have further questions on using the RadScheduler control, please submit them in the RadScheduler forum.

    I hope this will be helpful.

    Best wishes,
    Dani
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top
DevCraft banner