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

Button in custom Group Header in ScheduleView always disabled with 2011 Q2

1 Answer 47 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Ben Lischner
Top achievements
Rank 1
Ben Lischner asked on 19 Jul 2011, 05:42 PM
I have a button in a custom group header in a RadScheduleView (see below). Before 2011 Q2 this worked fine. After updating to 2011 Q2, the button is now always disabled. Doese anyone know how to ensure that this button is enabled?
<local:OrientedGroupHeaderContentTemplateSelector x:Key="GroupHeaderContentTemplateSelector">
    <local:OrientedGroupHeaderContentTemplateSelector.HorizontalResourceTemplate>
        <DataTemplate>
            <Button Content="Button Not Enabled" />
        </DataTemplate>
    </local:OrientedGroupHeaderContentTemplateSelector.HorizontalResourceTemplate>
    <local:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
        <DataTemplate>
            <Button Content="Button Not Enabled" />
        </DataTemplate>
    </local:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
</local:OrientedGroupHeaderContentTemplateSelector>

1 Answer, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 22 Jul 2011, 12:30 PM
Hi Ben,

This is an issue in RadScheduleView which we'll do our best to fix for the Q2 SP1.

For now, I would suggest to create a custom GroupHeaderStyleSelector, add the needed resources and in the GoToDayButtonStyle remove the command from the Button in the ControlTemplate. I've attached a simple example to demonstrate the approach.

Greetings,
Yana
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!

Tags
ScheduleView
Asked by
Ben Lischner
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or