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

Change Outer Appointment margin

4 Answers 89 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Philippe
Top achievements
Rank 1
Philippe asked on 28 Nov 2012, 11:54 AM

Hi,

I'd like to change the outer appointment margin (suppress those few pixels around each appointment)

I looked into PART_ItemsHost for any margin to modify with no success..

What should I do?

Thanks for your answer

Regards

4 Answers, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 03 Dec 2012, 01:35 PM
Hello Philippe,

In order to change the appointment margin you need to modify the margin of the horizontal appointment item. This can be done with a simple style. For example:

<telerik:OrientedAppointmentItemStyleSelectorx:Key="MyAppointmentStyle">
            <telerik:OrientedAppointmentItemStyleSelector.HorizontalStyle>
                <StyleTargetType="telerik:AppointmentItem">
                    <SetterProperty="Margin"Value="3 0 3 0"/>
                </Style>
            </telerik:OrientedAppointmentItemStyleSelector.HorizontalStyle>
        </telerik:OrientedAppointmentItemStyleSelector>

I hope this helps

Greetings,
Maria
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Philippe
Top achievements
Rank 1
answered on 04 Dec 2012, 01:56 PM
Hi,

The sample you gave me doesn't fit my needs...
I use a day definition, and if I specify a margin in telerik:OrientedAppointmentItemStyleSelector.VerticalStyle, I can reduce the apointment width but I can't increase it to suppress the outer margin.

You can see this margin on the attached file.

Do you see my problem?
0
Accepted
Masha
Telerik team
answered on 07 Dec 2012, 12:42 PM
Hi Philippe,

To remove the white space from the picture, you should set GroupHeaderStyleSelector to your RadScheduleView, and particular you need to modify the padding from HorizontalTodayGroupHeaderStyle.  You can check here for more information about this.

If you still experience difficulties, isolate the issue in a runnable sample and I will help you with customization.

Regards,
Maria
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Philippe
Top achievements
Rank 1
answered on 10 Dec 2012, 03:37 PM
I was using a Blend generated template, and updating the HorizontalTodayGroupHeaderStyle was inoperant.
With the original template (in the 'Themes.implicit' directory), it's all right. 

Thanks
Tags
ScheduleView
Asked by
Philippe
Top achievements
Rank 1
Answers by
Masha
Telerik team
Philippe
Top achievements
Rank 1
Share this question
or