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

Select item whose itemtemplate contains RadNumericUpDown

1 Answer 75 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Reilly
Top achievements
Rank 1
Veteran
Reilly asked on 28 Dec 2016, 04:04 PM

I have a RadListBox with an ItemTemplate that contains a read-only RadNumericUpDown. When I click on the RadNumericUpDown, the list item is not selected. How can I make that happen?

 

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 30 Dec 2016, 10:11 AM
Hello,

By convention, WPF controls would not listen for handled events and when a control executes logic caused by an event occurrence, the event is handled. Despite being read-only, RadNumericUpDown would still handle the mouse down event, as it takes the input focus for the needs of selection. I am attaching a sample project that demonstrates how to achieve the desired results.

Regards,
Ivan Ivanov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ListBox
Asked by
Reilly
Top achievements
Rank 1
Veteran
Answers by
Ivan Ivanov
Telerik team
Share this question
or