We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

The text area displays multiple lines despite setting MaxLines to 1 and AcceptsReturn to false

Thread ID:

Created:

Updated:

Platform:

Replies:

150244 Dec 27,2019 06:10 PM UTC Jan 3,2020 07:35 AM UTC WPF 3
loading
Tags: SfTextBoxExt
Ahmed
Asked On December 27, 2019 06:10 PM UTC

Hello,
(Syncfusion version: 17.4.0.40)

I have a SfTextBoxExt with the following properties:
MaxLines = "1" AcceptsReturn="False"

when I select a value from the suggestions either by selecting it by the mouse or pressing the down button:

The Expected Behavior:
the text box should be filled with the selected value from the suggestions and it should have only one line

What actually happens:
the text box is filled with the selected value from the suggestions AND an empty line is added to it, now the text box has two lines and the one that contains the suggestion is hidden up and the empty line is displayed..

How can I make the text box only contains one line all the time? 

Hemalatha Marikumar [Syncfusion]
Replied On December 30, 2019 12:54 PM UTC

Hi Ahmed, 
 
Greetings from Syncfusion. 
 
We are unable to reproduce the reported issue "The text area displays multiple lines despite setting MaxLines to 1 and AcceptsReturn to false" and we have attached the tested sample in below.  
 
 
Please check and update us with the issue reproducing sample or complete code snippets for checking further and provide a better solution. 
 
 
Regards, 
Hemalatha M. 


Ahmed
Replied On January 2, 2020 08:17 PM UTC

Hi Hemalatha,

Thank for for your help, the sample works fine, so the issue may be in  my code.. 

I will revise my code and check for the error there.

Thank you very much.

Hemalatha Marikumar [Syncfusion]
Replied On January 3, 2020 07:35 AM UTC

Hi Ahmed 
 
Thanks for your update. 
 
We are glad to hear that given solution works. 
 
Please let us know if you need any further assistance. 
 
Regards, 
Hemalatha M. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon