Hello dear support.
I have weird experience with TextBox, since, it's my initial form the login - the things looks too frustrating.
When the page is loaded the placeholder and the placed data is on the same place and the animation even making the things worse.
As well the components which occupying space is rendered later, which making the whole thing to load like it's on old PC but I am running on 36 core pc with gtx 1080..
@page "/login"
@inherits LayoutComponentBase
@using Syncfusion.Blazor
@using Syncfusion.Blazor.Navigations
@using Syncfusion.Blazor.Calendars
@using Syncfusion.Blazor.Buttons
@using Syncfusion.Blazor.Inputs
@using Syncfusion.Blazor.SplitButtons
@using Syncfusion.Blazor.Popups
@inject IJSRuntime JSRuntime;
@inject NavigationManager NavigationManager;
@Body
<table class="centerbox2x3" border="0">
<tr>
<td style="width:420px">
</td>
<td>
<table style="width:222px" border="0">
<tr style="height:46px">
<td>
</td>
</tr>
<tr>
<td>
<SfTextBox @ref="editCompany" Placeholder="e12DSw43" FloatLabelType="@FloatLabelType.Auto" Width="220" Value="Massimo"></SfTextBox>
</td>
</tr>
<tr>
<td>
<SfTextBox @ref="editUserName" Placeholder="eSSSw4#3" FloatLabelType="@FloatLabelType.Auto" Width="220" Value="LOUD"></SfTextBox>
</td>
</tr>
<tr>
<td>
<SfTextBox @ref="editPassword" Placeholder="ew43!^$#" FloatLabelType="@FloatLabelType.Auto" Width="220" Value="Aq#!@@"></SfTextBox>
</td>
</tr>
<tr style="height:16px">
<td>
</td>
</tr>
<tr>
<td style="float:right; right:10px">
<SfProgressButton @ref="buttonLogin" Content="Тест" OnClick="onBtnLoginClick" CssClass="e-danger">
<ProgressButtonSpinSettings Position="SpinPosition.Right"></ProgressButtonSpinSettings>
</SfProgressButton>
</td>
</tr>
<tr style="height:16px">
<td>
</td>
</tr>
<tr>
<td style="float:left">
<div style="height: 100%; width: 100%; display: flex;">
<div style="width:50%; ">
<SfMenu Items="@menuLnaguageItems">
<MenuEvents ItemSelected="onLanguageMenuItemSelected"></MenuEvents>
</SfMenu>
</div>
<div style="width:20%; " />
<div style="width:20%">
<SfMenu Items="@menuItems">
<MenuEvents ItemSelected="onContactMenuItemSelected"></MenuEvents>
</SfMenu>
</div>
</div>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</td>
</tr>
</table>
<style>
.centerbox2x3 {
width: 735px;
height: 508px;
position: fixed;
margin-left: -300px; /* half of width */
margin-top: -100px; /* half of height */
top: 30%;
left: 50%;
background-image: url('images/backgrounds/loginbkg1.jpg');
background-repeat: no-repeat;
}
.menu-control-login {
margin: 25px auto 0;
text-align: center;
}
</style>
@code
{
bool serverAvailable { get; set; } = true;
protected override void OnInitialized()
{
base.OnInitialized();
}
public SfTextBox editCompany;
public SfTextBox editUserName;
public SfTextBox editPassword;
public SfProgressButton buttonLogin;
public async Task onBtnLoginClick()
{
buttonLogin.Disabled = true;
}
public void onLoginComplete( bool isSuccess )
{
if( isSuccess == false )
{
// login failes message
}
}
private void onLanguageMenuItemSelected( Syncfusion.Blazor.Navigations.MenuEventArgs args )
{
}
private void onContactMenuItemSelected( Syncfusion.Blazor.Navigations.MenuEventArgs args )
{
switch( args.Item.Id )
{
default:
{
}
break;
}
}
private List<MenuItem> menuLnaguageItems = new List<MenuItem>
{
new MenuItem
{
Text = "BG",
Items = new List<MenuItem>
{
new MenuItem
{
Text = "BG",
Id = "1"
},
new MenuItem
{
Text = "EN",
Id = "2"
}
}
}
};
private List<MenuItem> menuItems = new List<MenuItem>
{
new MenuItem
{
Text = "тест1",
Items = new List<MenuItem>
{
new MenuItem
{
Text = "тест1",
Id = "1"
},
new MenuItem
{
Text = "тест1",
Id = "2"
},
new MenuItem
{
Text = "тест1",
Id = "3"
}
}
}
};
}