Timeline SelectedItem = null?

2 posts, 0 answers
  1. Jacky
    Jacky avatar
    2 posts
    Member since:
    Dec 2015

    Posted 28 Jan Link to this post

    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}"/>


  2. Martin
    Martin avatar
    1101 posts

    Posted 29 Jan Link to this post

    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.

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top