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

HighImportance Template

1 Answer 71 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 1
Michele asked on 27 Mar 2012, 09:03 AM
Hi,
how can I change the icon related to Importance (=High) property of the appointment (in the AppointmentTemnplate)?

thanks, michele

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 30 Mar 2012, 11:22 AM
Hi Michele,

Are you refering to the Metro theme?
In order to change the importance icon you need to edit the template of the AppointmentItem. In each horizontal and vertical templates there are 2 ContentControls for low and high importance which has specific templates. Find the HighImportanceMarkTemplate and change it according to your requirements. Then you can apply only the appointment item using the OrientedAppointmentItemStyleSelector of the ScheduleView. Through a Setter set the Template property of the horizontal and vertical styles of the AppointmentItem, for example:

<telerik:OrientedAppointmentItemStyleSelector.VerticalStyle>
            <Style TargetType="telerik:AppointmentItem">
                <Setter Property="Template" Value="{StaticResource AppointmentItemVerticalControlTemplate}" />
                <Setter Property="Margin" Value="1 0 0 0" />
            </Style>
        </telerik:OrientedAppointmentItemStyleSelector.VerticalStyle>

More information on the appointment styling you could find in this help article.

Hope this information is helpful.

Greetings,
Konstantina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ScheduleView
Asked by
Michele
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or