SfTextBox don't show PLACEHOLDER

Hi,
i try to add some SfTextBox in on the ContentTemplate, but i can't see the PLACEHOLDER.
What i wrong?


<SfAccordion LoadOnDemand="false">
    <AccordionItems>
        <AccordionItem Header="TEST">
            <ContentTemplate>
                <SfTextBox Placeholder="TEST PLACEHOLDER" FloatLabelType="@FloatLabelType.Always"></SfTextBox>
            </ContentTemplate>
        </AccordionItem>
    </AccordionItems>
</SfAccordion>
<SfTextBox Placeholder="TEST PLACEHOLDER" FloatLabelType="@FloatLabelType.Always"></SfTextBox>

5 Replies 1 reply marked as answer

BS Balasubramanian Sattanathan Syncfusion Team October 16, 2020 01:17 PM UTC

Hi Marco, 

Greetings from Syncfusion Support. 

We have validated your reported problem and we suggest you to add the TextBox control inside the div element to overcome the problem.  

Code snippet: 
<SfAccordion> 
    <AccordionEvents></AccordionEvents> 
    <AccordionItems> 
        <AccordionItem> 
            <HeaderTemplate>TextBox-1</HeaderTemplate> 
            <ContentTemplate> 
                <div> 
                    <SfTextBox Placeholder='First Name' FloatLabelType='@FloatLabelType.Auto'></SfTextBox> 
                </div> 
            </ContentTemplate> 
        </AccordionItem> 
        <AccordionItem> 
            <HeaderTemplate>TextBox-2</HeaderTemplate> 
            <ContentTemplate> 
                <div> 
                    <SfTextBox Placeholder="TEST PLACEHOLDER" FloatLabelType="@FloatLabelType.Always"></SfTextBox> 
                </div> 
            </ContentTemplate> 
        </AccordionItem> 
    </AccordionItems> 
</SfAccordion> 

Screenshot: 
 


Kindly try the above solution and let us know if you need further assistance. 

Regards, 
Balasubramanian S 


Marked as answer

MA Marco October 16, 2020 01:39 PM UTC

Respect!
Thank you very much.


NR Nevitha Ravi Syncfusion Team October 16, 2020 02:00 PM UTC

Hi Marco , 

You are most welcome. Please get back to us if you need any further assistance. 

Regards, 
Nevitha 



FD Felipe de Abajo Aragón January 19, 2023 06:14 PM UTC

Hello,


I have the same problem, tried the <div> solution but it doesn't work:

<SfInPlaceEditor @bind-Value="@user" TValue="ApplicationUser" Mode="@Mode" EditableOn="@EditableOn"

                 Type="Syncfusion.Blazor.InPlaceEditor.InputType.Text" ShowButtons="@ShowButtons" Disabled="@Disabled"

                 SubmitOnEnter="true">


    <EditorComponent>

        <div>

            <SfTextBox Placeholder="Nombre de usuario:" @bind-Value="@Username"></SfTextBox>

        </div>

        <div>

            <SfTextBox Placeholder="Correo electrónico:" @bind-Value="@Email"></SfTextBox>

        </div>

        <div>

            <SfTextBox Placeholder="Número de teléfono:" @bind-Value="@PhoneNumber"></SfTextBox>

        </div>

    </EditorComponent>

    <InPlaceEditorEvents OnActionSuccess="OnSuccess" TValue="@ApplicationUser"></InPlaceEditorEvents>


</SfInPlaceEditor>



Could you help me please? 



RV Ravikumar Venkatesan Syncfusion Team January 20, 2023 06:21 PM UTC

Felipe,


We have created a new forum for your SFTextBox question. Please follow the below link for further updates.


https://www.syncfusion.com/forums/180090/sftextbox-dont-show-placeholder-from-158792


Loader.
Up arrow icon