Select item whose itemtemplate contains RadNumericUpDown

2 posts, 0 answers
  1. Reilly
    Reilly avatar
    6 posts
    Member since:
    Oct 2012

    Posted 28 Dec 2016 Link to this post

    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?

     

  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1176 posts

    Posted 30 Dec 2016 Link to this post

    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.
Back to Top