Completed event for C1ComboBox?

Posted by: jared.fritsch on 21 February 2018, 10:03 am EST

    • Post Options:
    • Link

    Posted 21 February 2018, 10:03 am EST

    The Xamarin.Forms Entry control has a handy Completed event that can be used to capture when the user presses enter while within the control.

    https://developer.xamarin.com/api/event/Xamarin.Forms.Entry.Completed/

    Does the C1ComboBox have anything like that? I couldn’t find anything in the documentation. Would be nice for our users that type into the C1ComboBox to press enter and have something happen, such as submitting a form or something.

  • Posted 21 February 2018, 11:49 pm EST

    Hi Jared,

    Unfortunately, there is no direct way to handle the Enter key press. You’ll need to create a custom renderer and handle the KeyDown or PreviewKeyDown event in the custom renderer for this.

  • Posted 22 February 2018, 1:00 am EST

    Sounds good. Thank you.

  • Posted 22 February 2018, 1:37 am EST

    Hi Jared

    I think we’ll consider adding this as an enhancement in the future. I think it makes sense to have an event corresponding with completion or generally the end of an edit. No timeline yet, but I’ll let you know where we’re able to fit it into the roadmap.

    Thanks

    Kelley

  • Posted 22 February 2018, 6:00 am EST

    Thanks, Kelley. I was actually going to submit a feature request but got sidetracked! I won’t worry about submitting that anymore. The custom renderer approach does seem to work well for the time being.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels