Hi,
Is is possible to have fully customised templates that still supports the SelectionMode functionality?
I have a Timeline supporting Selection (SelectionMode="Extended") working as expected. However, as soon as I change the item template using TimelineItemTemplate to contain some custom content it no longer allows selections to be made.
E.g. using the Telerik demo code template from the CustomizingItems project shows the issue:
If I change the template to:
it again allows selection. It appears that the selection feature is provided by the Telerik control TimelineItemControl. However this doesn't allow content and so limits customisability.
Thanks,
Chris
Is is possible to have fully customised templates that still supports the SelectionMode functionality?
I have a Timeline supporting Selection (SelectionMode="Extended") working as expected. However, as soon as I change the item template using TimelineItemTemplate to contain some custom content it no longer allows selections to be made.
E.g. using the Telerik demo code template from the CustomizingItems project shows the issue:
<
DataTemplate
x:Key
=
"ItemWithDurationTemplate"
>
<
Border
Width
=
"10"
Height
=
"10"
...>
<
Rectangle
Height
=
"7"
Width
=
"7"
... >
</
Rectangle
>
</
Border
>
</
DataTemplate
>
...
<t:RadTimeline Grid.Row="0"
TimelineItemTemplate="{StaticResource ItemWithDurationTemplate}"
...
If I change the template to:
<
DataTemplate
x:Key
=
"ItemWithDurationTemplate"
>
<
t:TimelineItemControl
x:Name
=
"ItemLine"
Height
=
"10"
... />
...
it again allows selection. It appears that the selection feature is provided by the Telerik control TimelineItemControl. However this doesn't allow content and so limits customisability.
Thanks,
Chris