RadMultiColumnComboBox - Don't accept returns

0 Answers 23 Views
MultiColumnComboBox
Shawn
Top achievements
Rank 1
Iron
Shawn asked on 13 Mar 2025, 04:59 PM

I'm having an issue with the RadMultiColumnComboBox where it accepts returns, so it grows the field when it shouldn't. I tried this but it had no effect:

private void MultiColumnComboBox_Loaded(object sender, RoutedEventArgs e)
{
    var textBox = MultiColumnComboBox.FindChildByType<TextBox>();
            
    if (textBox != null)
    {
        textBox.AcceptsReturn = false;
        textBox.AcceptsTab = false;
    }
}
How can I make it so the field doesn't accept returns?
Stenly
Telerik team
commented on 18 Mar 2025, 09:36 AM

Hello Shawn,

I tried reproducing this behavior, however, I was unsuccessful. On my end, the result from the image is not present.

I attached the sample project, so, would it be possible to give it a try and let me know if I am missing something of importance?

Shawn
Top achievements
Rank 1
Iron
commented on 18 Mar 2025, 05:09 PM

If you can't recreate it, then it's possible there's something in our project causing the issue. I'll review our project and see if I see anything that could be causing it. Thanks.
Stenly
Telerik team
commented on 20 Mar 2025, 11:19 AM

Hello Shawn,

Please let me know if you manage to isolate this behavior. I will be more than happy to review it on my side and share more information on this based on your setup.

Shawn
Top achievements
Rank 1
Iron
commented on 20 Mar 2025, 06:48 PM

I found the issue. It was a bug in some custom code I had in the PreviewTextInput event.

No answers yet. Maybe you can help?

Tags
MultiColumnComboBox
Asked by
Shawn
Top achievements
Rank 1
Iron
Share this question
or