Combobox floating hint does not work in SfTextInputLayout

i having trouble making Combobox hint always floating 

public class FInputCombobox : SfTextInputLayout

    {

        public new FSfComboBox InputView

        {

            get => base.Content as FSfComboBox;

            set => base.Content = value;

        }



        public FInputCombobox() : base()

        {

            base.Content = new FSfComboBox();

            InputView.DropDownItemHeight = 40;

            InputView.DropDownItemFontFamily = FSetting.FontText;

            InputView.DropDownItemFontSize = FSetting.FontSizeLabelTitle;

            InputView.MaxDropDownHeight = 410;

            InputView.DropDownIconColor = FSetting.MainColor;

            InputView.DropDownBackground = FSetting.MainColor;

            // InputView.DropDownItemHeight = 30;

            ShowHint = true;

            HintLabelStyle.FontFamily = FSetting.FontText;

            HintLabelStyle.FontSize = FSetting.FontSizeLabelHint;

            HintLabelStyle.TextColor = FSetting.MainColor;

            IsHintAlwaysFloated = true;

            EnableHintAnimation = false;

            ContainerType = ContainerType.None;

            ContainerBackground = FSetting.MainColor;

            OutlineCornerRadius = 8;

            Stroke = FSetting.MainColor;

            FocusedStrokeThickness = UnfocusedStrokeThickness = 1;

        }

    }


3 Replies 1 reply marked as answer

AA Aarthi Arjunan Syncfusion Team December 13, 2024 11:35 AM UTC

Hi,

 

Thank you for reaching out to us. We have validated the reported issue, "ComboBox floating hint does not work in SfTextInputLayout," on our end. To resolve the issue, we suggest removing the EnableHintAnimation property from SfTextInputLayout. When IsHintAlwaysFloated is set to true, the EnableHintAnimation property is not needed, and its presence is causing the reported issue. For more details, please refer to the attached sample.

 

Please let us know whether the provided suggestion helps to resolve your query. Please don’t hesitate to contact us if you have any concerns or queries.

 

Regards,

Aarthi A.


Attachment: TextInputLayoutSample_4c901ccc.zip

Marked as answer

NT Nguy?n Th?nh replied to Aarthi Arjunan December 13, 2024 03:43 PM UTC

That's worked



PR Preethi Rajakandham Syncfusion Team December 14, 2024 06:06 AM UTC

Hi Team,

Thank you for the update. 

We are glad that the provided response meets your requirement. We will mark this thread as solved. Please let us know if you need further assistance. As always, we are happy to help you out. 

Regards,

Preethi R


Loader.
Up arrow icon