DataBinding of SelectedItem in TimeLine control does not work

1 Answer 27 Views
TimeLine
Gerhard
Top achievements
Rank 1
Iron
Iron
Gerhard asked on 10 Mar 2025, 02:27 PM
If I bind the SelectedItem of my TimeLine control to a property of my MainView model, the setter does not run when an item is selected. However, the SelectionChanged event is executed.

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 11 Mar 2025, 04:47 PM

Hello Gerhard,

I tested this behavior, however, the property bound to the SelectedItem property of the RadTimeline control is correctly updated on my end. I attached a sample project for you to test.

On a side note, may I ask if the IsSelectionEnabled property of the control is set to True, as well as if the Mode property of the Binding instance for the SelectedItem property is set to TwoWay?

Regards,
Stenly
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

Gerhard
Top achievements
Rank 1
Iron
Iron
commented on 20 Mar 2025, 06:43 AM

Hello Stenly, it was actually due to the 'TwoWay'.

Thank you very much
Stenly
Telerik team
commented on 20 Mar 2025, 11:21 AM

Hello Gerhard,

Thank you for letting me know what was causing the reported behavior on your side. Indeed, in order to correctly update the SelectedItem property, the Mode property of the Binding instance should be set to TwoWay.

Tags
TimeLine
Asked by
Gerhard
Top achievements
Rank 1
Iron
Iron
Answers by
Stenly
Telerik team
Share this question
or