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

Timeline SelectedItem = null?

1 Answer 18 Views
TimeLine
This is a migrated thread and some comments may be shown as answers.
Jacky
Top achievements
Rank 1
Jacky asked on 29 Jan 2016, 12:09 AM

I use the SDK sample - "Custoizing item" to change the item color

but when I try to get SelectedItem. it  always be null. it seems it can not be selected

ItemTemplateSelector="{StaticResource ItemTemplateSelector}"

 <local:CustomItemTemplateSelector x:Key="ItemTemplateSelector"
InstantItemTemplate="{StaticResource InstantItemTemplate}"
ItemWithDurationTemplate="{StaticResource ItemWithDurationTemplate}"/>
    

-Jacky

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 29 Jan 2016, 10:56 AM
Hello Jacky,

The reported behavior is caused by the fact that the selection of RadTimeline doesn't work in a scenario with its item template properties set and if the template contains an element different than TimelineItemControl. This is a limitation of the control and it can be resolve by creating a custom control that derives from TimelineItemControl and adding it in the item template. You can find this approach demonstrated in the First Look demo of RadTimeline.

Also, we have a request in our feedback portal which you can check out.

Regards,
Martin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
TimeLine
Asked by
Jacky
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or