I have below clarification of sfgrid CSS.
1.How to make Grid Header color as "Light Grey"
2.How to remove box in Action button (Edit/Delete button)
3.How to change fontsize for sftextbox and sfcombobox including placeholder font.
|
<style>
.e-grid th.e-headercell {
background-color: lightgrey;
}
</style> |
|
|
|
<style>
.e-ddl.e-input-group.e-control-wrapper .e-input {
font-size: 20px;
font-family: 'French Script MT';
color: #ab3243;
}
</style> |
|
|
Thanks for support
How can I change the height of sftextbox and sfcombobox ???
For second query
I am using material theme
see the video link for second query
https://www.screencast.com/t/QoDtCypnvX0
|
<SfTextBox ...></SfTextBox>
<SfComboBox ... TValue="string" TItem="string"></SfComboBox>
<style>
.e-ddl.e-control-wrapper{
height:90px;
}
.e-input-group.e-control-wrapper{
height:90px;
}
</style>
|
Thanks for report..
it's working fine..
but fonts not changing for dropdown.please advise the css class for dropdown font and drop down placeholder font
I have check below css from above link but it's shows an error message as "::placeholder" is not a valid pseudo-element"
.e-ddl.e-input-group input.e-input::placeholder {
color: red;
}
|
.e-ddl.e-input-group input.e-input ::-webkit-input-placeholder {
font-family: emoji;
} |
I have tried below css and check all browser but still not working
.e-ddl.e-input-group input.e-input ::-webkit-input-placeholder {
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color:green;
}
e-ddl.e-input-group input.e-input ::-moz-placeholder {
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: green;
}
e-ddl.e-input-group input.e-input :-ms-input-placeholder{
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: green;
}
e-ddl.e-input-group input.e-input :-ms-input-placeholder {
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: green;
}
please help it's my top most urgent
awaiting for reply
|
@using Syncfusion.Blazor.DropDowns
<SfDropDownList TValue="string" TItem="string" DataSource="@data" Placeholder="Choose value"></SfDropDownList>
@code {
public List<string> data = new List<string> { "a", "b" };
}
<style>
.e-ddl.e-input-group input.e-input::-webkit-input-placeholder {
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: green;
}
.e-ddl.e-input-group input.e-input::-moz-placeholder {
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: green;
}
.e-ddl.e-input-group input.e-input:-ms-input-placeholder {
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: green;
}
</style> |
thanks for reply....
I have another issue,please check my comments in below video
please help...
|
@using Syncfusion.Blazor.DropDowns
@using Syncfusion.Blazor.Inputs
<SfDropDownList TValue="string" TItem="string" DataSource="@data" FloatLabelType="Syncfusion.Blazor.Inputs.FloatLabelType.Auto" Placeholder="Choose value"></SfDropDownList>
<SfTextBox Placeholder="choose value"></SfTextBox>
@code {
public List<string> data = new List<string> { "a", "b" };
}
<style>
/* styles for dropdown*/
e-float-input.e-input-group:not(.e-float-icon-left) .e-float-line::before, .datetime.e-float-input.e-control-wrapper.e-input-group:not(.e-float-icon-left) .e-float-line::before, .datetime.e-float-input.e-input-group:not(.e-float-icon-left) .e-float-line::after, .datetime.e-float-input.e-control-wrapper.e-input-group:not(.e-float-icon-left) .e-float-line::after {
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: green;
background-color:green;
}
.e-float-input:not(.e-error):not(.e-input-focus):not(.e-disabled) input:not(:focus):not(:valid) ~ label.e-float-text:not(.e-label-top), .e-float-input:not(.e-error):not(.e-input-focus) textarea:not(:focus):not(:valid) ~ label.e-float-text:not(.e-label-top), .e-float-input.e-control-wrapper:not(.e-error):not(.e-input-focus):not(.e-disabled) input:not(:focus):not(:valid) ~ label.e-float-text:not(.e-label-top) {
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: green;
}
.e-ddl.e-lib.e-input-group.e-control-wrapper.e-float-input .e-float-text.e-label-top {
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: green;
}
/* styles for textbox*/
.e-control-wrapper.e-input-group input.e-input::-webkit-input-placeholder {
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: green;
}
.e-control-wrapper.e-input-group input.e-input::-moz-placeholder {
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: green;
}
.e-control-wrapper.e-input-group input.e-input:-ms-input-placeholder {
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: green;
}
</style> |
Thanks
Thanks but placeholder font not working for textbox.please check below link
pls help
Thanks working fine
But how to change the placeholder and value fonts if syncfusion control is readonly or disabled
|
.e-input[disabled], .e-input-group .e-input[disabled], .e-input-group.e-control-wrapper .e-input[disabled], .e-input-group.e-disabled, .e-input-group.e-control-wrapper.e-disabled, .e-float-input input[disabled], .e-float-input.e-control-wrapper input[disabled], .e-float-input textarea[disabled], .e-float-input.e-control-wrapper textarea[disabled], .e-float-input.e-disabled, .e-float-input.e-control-wrapper.e-disabled {
-webkit-text-fill-color: green;
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
} |
I have another clarification in placeholde.please check below link to solve this issue.
https://www.screencast.com/t/oJ3J0Uamc
|
.e-input-group.e-control-container.e-control-wrapper.e-valid-input.e-float-input .e-float-text.e-label-top {
font-size: 13px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: green;
} |
thanks for support.
it works fine,but i have one more clarification.pls check below link
https://www.screencast.com/t/LUosGh8F
CSS:-
.e-ddl.e-lib.e-input-group.e-control-wrapper.e-float-input .e-float-text.e-label-top {
font-size: 14px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: black;
}
label.e-float-text, .e-float-input:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom, .e-float-input.e-control-wrapper:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom, .e-float-input.e-bigger:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom, .e-float-input.e-control-wrapper.e-bigger:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom, .e-bigger .e-float-input:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom, .e-bigger .e-float-input.e-control-wrapper:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom, .e-float-input.e-small:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom, .e-float-input.e-control-wrapper.e-small:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom, .e-small .e-float-input:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom, .e-small .e-float-input.e-control-wrapper:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom, .e-float-input.e-small.e-bigger:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom, .e-float-input.e-control-wrapper.e-small.e-bigger:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom, .e-bigger .e-float-input.e-small:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom, .e-bigger .e-float-input.e-control-wrapper.e-small:not(.e-error):not(.e-input-focus) input:not(:focus):valid ~ label.e-float-text.e-label-bottom {
font-size: 14px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: black;
}
.e-float-input.e-control-wrapper:not(.e-error) input:focus ~ label.e-float-text, .e-float-input.e-control-wrapper:not(.e-error) input:valid ~ label.e-float-text, .e-float-input.e-control-wrapper:not(.e-error) input ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper:not(.e-error) input[readonly] ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper:not(.e-error) input[disabled] ~ label.e-label-top.e-float-text, .e-float-input .e-control-wrapper:not(.e-error) input label.e-float-text.e-label-top, .e-float-input.e-control-wrapper.e-bigger:not(.e-error) input:focus ~ label.e-float-text, .e-float-input.e-control-wrapper.e-bigger:not(.e-error) input:valid ~ label.e-float-text, .e-float-input.e-control-wrapper.e-bigger:not(.e-error) input ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper.e-bigger:not(.e-error) input[readonly] ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper.e-bigger:not(.e-error) input[disabled] ~ label.e-label-top.e-float-text, .e-bigger .e-float-input.e-control-wrapper:not(.e-error) input:focus ~ label.e-float-text, .e-bigger .e-float-input.e-control-wrapper:not(.e-error) input:valid ~ label.e-float-text, .e-bigger .e-float-input.e-control-wrapper:not(.e-error) input ~ label.e-label-top.e-float-text, .e-bigger .e-float-input.e-control-wrapper:not(.e-error) input[readonly] ~ label.e-label-top.e-float-text, .e-bigger .e-float-input.e-control-wrapper:not(.e-error) input[disabled] ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper:not(.e-error).e-input-focus input ~ label.e-float-text, .e-float-input.e-control-wrapper.e-bigger:not(.e-error).e-input-focus input ~ label.e-float-text, .e-bigger .e-float-input.e-control-wrapper:not(.e-error).e-input-focus input ~ label.e-float-text {
font-size: 14px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: black;
}
.e-input[disabled], .e-input-group .e-input[disabled], .e-input-group.e-control-wrapper .e-input[disabled], .e-input-group.e-disabled, .e-input-group.e-control-wrapper.e-disabled, .e-float-input input[disabled], .e-float-input.e-control-wrapper input[disabled], .e-float-input textarea[disabled], .e-float-input.e-control-wrapper textarea[disabled], .e-float-input.e-disabled, .e-float-input.e-control-wrapper.e-disabled {
-webkit-text-fill-color: black;
font-size: 14px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: black;
}
.e-input-group.e-control-container.e-control-wrapper.e-valid-input.e-float-input .e-float-text.e-label-top {
font-size: 9px;
letter-spacing: 0px;
font-weight: 500;
font-family: "Poppins";
color: red;
}
|
.e-input-group.e-control-container.e-float-input.e-control-wrapper label.e-float-text {
font-weight: bold !important;
} |
thanks for support,
I have another clarification in grid css.please check my comments in below image
|
<style>
.e-pager .e-pagerconstant {
margin: 0 0 5px 12px !important;
}
.e-pager div.e-parentmsgbar {
padding-top: 21px !important;
}
</style> |
|
|
sorry for late reply
the below css is not working for changing font of textbox
|
.e-input-group.e-control-container.e-control-wrapper.e-float-input .e-control {
font-size: 20px;
font-family: 'French Script MT';
color: #ab3243;
} |
everything works fine
but how to change font for sfmultiselect placeholder.
|
<style>
.e-float-input input:valid ~ label.e-float-text,
.e-float-input input ~ label.e-label-top.e-float-text,
.e-float-input input ~ label.e-label-bottom.e-float-text {
font-family: "Times New Roman";
}
</style> |
I have another two clarification.
1.How to change dropdown item value font.
2.Place Holder font family not changing (see below css).I have set "Helvatica font but its showing as "Roboto" font
.e-float-input.e-control-wrapper:not(.e-error) input:focus ~ label.e-float-text, .e-float-input.e-control-wrapper:not(.e-error) input:valid ~ label.e-float-text, .e-float-input.e-control-wrapper:not(.e-error) input ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper:not(.e-error) input[readonly] ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper:not(.e-error) input[disabled] ~ label.e-label-top.e-float-text, .e-float-input .e-control-wrapper:not(.e-error) input label.e-float-text.e-label-top, .e-float-input.e-control-wrapper.e-bigger:not(.e-error) input:focus ~ label.e-float-text, .e-float-input.e-control-wrapper.e-bigger:not(.e-error) input:valid ~ label.e-float-text, .e-float-input.e-control-wrapper.e-bigger:not(.e-error) input ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper.e-bigger:not(.e-error) input[readonly] ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper.e-bigger:not(.e-error) input[disabled] ~ label.e-label-top.e-float-text, .e-bigger .e-float-input.e-control-wrapper:not(.e-error) input:focus ~ label.e-float-text, .e-bigger .e-float-input.e-control-wrapper:not(.e-error) input:valid ~ label.e-float-text, .e-bigger .e-float-input.e-control-wrapper:not(.e-error) input ~ label.e-label-top.e-float-text, .e-bigger .e-float-input.e-control-wrapper:not(.e-error) input[readonly] ~ label.e-label-top.e-float-text, .e-bigger .e-float-input.e-control-wrapper:not(.e-error) input[disabled] ~ label.e-label-top.e-float-text, .e-float-input.e-control-wrapper:not(.e-error).e-input-focus input ~ label.e-float-text, .e-float-input.e-control-wrapper.e-bigger:not(.e-error).e-input-focus input ~ label.e-float-text, .e-bigger .e-float-input.e-control-wrapper:not(.e-error).e-input-focus input ~ label.e-float-text {
letter-spacing: 0px;
font-size: 10px;
color: red;
font-family:Helvetica !important;
}
Please check below screencast for first query
https://www.screencast.com/t/GJJiBdLoByQA
|
<style>
.e-float-input input:valid ~ label.e-float-text,
.e-float-input input ~ label.e-label-top.e-float-text,
.e-float-input input ~ label.e-label-bottom.e-float-text {
font-family: "Helvetica";
}
.e-dropdownbase .e-list-item {
font-family: cursive;
}
</style> |
sorry for late reply......
everything's works fine but I have another clarification.
1.I would like to change the font size of "place holder" when validation is done in Editform.
2.How to change place-holder text as "pascal case (text-transform:capitalize)" for all input field.
3.How to change place-holder text as "pascal case
(text-transform:capitalize)" for grid Header
|
<style>
.custom.e-float-input.e-valid-input.valid.e-success .e-float-text.e-label-top{
text-transform: capitalize;
}
</style> |
Thanks for update
I have another clarification
Text-tranform is working fine for placeholder
And also I have applied the same for textbox
But I can not get exact Text-tranform value from textbox in .cs code
For example
In textbox, I am trying to enter customer name as lowecase,as per css rule it coverts as "capitilize Text-tranform format" but when I trying to get value from c# code (model binding in editform) it's returns as lowercase only.I need to get exact Text-tranform value in c#code ( capitalize format)
|
<GridColumn Field=@nameof(Order.OrderID) HeaderText="Order Id" TextAlign="TextAlign.Right"Width="120"></GridColumn>
<GridColumn Field=@nameof(Order.CustomerID) HeaderText="Customer Name" Width="150"></GridColumn> |
|
<style>
.e-grid .e-headercelldiv {
text-transform: capitalize;
}
</style> |
|
CultureInfo.CurrentCulture.TextInfo.ToTitleCase(employee.TextValue.ToLower()); |
Thanks for quick support...
For Edit Form Clarification:-
How to use below function for EditForm textbox control
CultureInfo.CurrentCulture.TextInfo.ToTitleCase(employee.TextValue.ToLower()); |
<div class="col-sm-12 col-md-6 col-lg-6">
<SfTextBox CssClass="required properconversion" Placeholder="@GetResourceProvider.GetResourceValue(Resource, "lblColorName")" @bind-Value="colorSetup.ColorName" FloatLabelType="@FloatLabelType.Always" @onkeydown="@keydown" ></SfTextBox>
<ValidationMessage For="@(() => colorSetup.ColorName)" />
</div>
For Grid Column clarification
I have two columns in grid
1.Customer Code
2.Customer Name
I would like to know how to make customer code row cell value as "uppercase" and Customer Name row cell value as "Capitilize"
|
CultureInfo.CurrentCulture.TextInfo.ToTitleCase(employee.TextValue.ToLower()); |
|
[Required(ErrorMessage = "Name is required")]
public string TextValue
{
get => _value;
set
{
_value = (value != null) ? CultureInfo.CurrentCulture.TextInfo.ToTitleCase(value.ToLower()) : null;
}
} |
|
<SfGrid DataSource="@Orders" AllowPaging="true">
<GridPageSettings PageSize="5"></GridPageSettings>
<GridColumns>
<GridColumn Field=@nameof(Order.OrderID) HeaderText="Order id" TextAlign="TextAlign.Right"Width="120"></GridColumn>
<GridColumn Field=@nameof(Order.CustomerID) HeaderText="Customer ID" CustomAttributes="@(newDictionary<string, object>(){ { "class", "e-attr" }})" Width="150"></GridColumn>
<GridColumn Field=@nameof(Order.CustomerName) HeaderText="Customer name"CustomAttributes="@(new Dictionary<string, object>(){ { "class", "e-attr2" }})" Width="150"></GridColumn>
<GridColumn Field=@nameof(Order.OrderDate) HeaderText=" Order date" Format="d"Type="ColumnType.Date" TextAlign="TextAlign.Right" Width="130"></GridColumn>
<GridColumn Field=@nameof(Order.Freight) HeaderText="Freight" Format="C2"TextAlign="TextAlign.Right" Width="120"></GridColumn>
</GridColumns>
</SfGrid>
@code{
. ..
}
<style>
.e-grid .e-headercelldiv {
text-transform: capitalize;
}
.e-attr {
text-transform:uppercase;
}
.e-attr2 {
text-transform: capitalize;
}
</style> |