Setting SelectedItem with behind code not applying the Selected template

3 posts, 0 answers
    MARTIN avatar
    7 posts
    Member since:
    Jul 2013

    Posted 24 Nov 2014 Link to this post

    A two way binding to selected item is not applying the "Selected" (in this case "Pressed") template to the timeline item.

    Surely expected behaviour would be the same as that of a Gridview or Listview, that is, setting the SelectedItem/s in the view model should result in the same appearance as if the user had actually clicked the timeline item with the SelectionMode set to single?
    MARTIN avatar
    7 posts
    Member since:
    Jul 2013

    Posted 24 Nov 2014 in reply to MARTIN Link to this post

    Specifically, our use case is that we ALWAYS want an item selected visually on the timeline. If the user clicks a blank space on the timeline, we want to force selection to the first item in the ItemsSource. This does not appear to work from behind code either (manually setting the RadTimeline's SelectedItem property also does not apply the template)
  3. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 27 Nov 2014 Link to this post

    Hi Martin,

    I am not quite sure I understand the problem. In order to set SelectedItem or add items to the SelectedItems collection, you should first set IsSelectionEnabled to "true". In case this does not help you, could you please explain in detail the case and send us code snippets, demonstrating your case?


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top