Excel Like Filter with broken styles
In the recent updates, I have noticed that the UI for the filter menus that open up in case of Excel-Type have lost their styles:

I can click but there is no mouse cursor change and also, the sub-menu opens very basic:

I cannot remember which build caused this but right now I'm using the latest as of writing (v18.3.0.44) and am facing this issue.
Code Extract:
@using Microsoft.AspNetCore.Http
@using Microsoft.Extensions.DependencyInjection
@using Syncfusion.Blazor.Buttons
@using Syncfusion.Blazor.Calendars
@using Syncfusion.Blazor.Grids
@using Syncfusion.Blazor.Inputs
@using Syncfusion.Blazor.Navigations
@using Syncfusion.Blazor.Popups
@using ClickEventArgs = Syncfusion.Blazor.Navigations.ClickEventArgs
@using InputType = Syncfusion.Blazor.Inputs.InputType
@using SelectionType = Syncfusion.Blazor.Grids.SelectionType
@using FilterType = Syncfusion.Blazor.Grids.FilterType
<div id="ControlRegion">
<SfGrid ID="Grid" DataSource="@_allProjects" @ref="_grid" AllowPaging="true" AllowFiltering="true" AllowReordering="false"
AllowResizing="true" AllowGrouping="false" AllowExcelExport="true" AllowSelection="true" AllowSorting="true" Toolbar="@_gridToolbarItems">
<GridEditSettings AllowAdding="false" AllowEditing="false" AllowDeleting="false"></GridEditSettings>
<GridFilterSettings Type="FilterType.Excel" EnableCaseSensitivity="false">
<GridFilterColumns>
<GridFilterColumn Field=@nameof(DesignProjectViewModel.DesignManager01) MatchCase=false Operator="Operator.StartsWith" Predicate="and" Value="@_currentUser"></GridFilterColumn>
</GridFilterColumns>
</GridFilterSettings>
<GridSelectionSettings Type="SelectionType.Multiple"></GridSelectionSettings>
<GridEvents OnToolbarClick="GridToolbarClick" DataBound="GridDataboundHandler" TValue="DesignProjectViewModel"></GridEvents>
<GridPageSettings PageCount="5" PageSizes="false" PageSize="19"></GridPageSettings>
<GridTemplates>
<DetailTemplate>
</DetailTemplate>
</GridTemplates>
<GridColumns>
<GridColumn Width="100" AllowFiltering="false" Field=@nameof(DesignProjectViewModel.InvestmentKey) HeaderText="Id" IsPrimaryKey="true"></GridColumn>
<GridColumn Width="050" AllowFiltering="true" Field=@nameof(DesignProjectViewModel.IsNonRadarProject) HeaderText="NRP" Filter="@(new {type = "CheckBox"})" HeaderTextAlign="TextAlign.Center" TextAlign="TextAlign.Center">
<Template>
@{
var currentRadarProject = (context as DesignProjectViewModel);
var customIsNonRadarProject = (currentRadarProject?.IsNonRadarProject) ?? false;
if (customIsNonRadarProject)
{
<span>Y</span>
}
else
{
<span>N</span>
}
}
</Template>
</GridColumn>
<GridColumn Width="090" AllowFiltering="true" Field=@nameof(DesignProjectViewModel.ProjectNumber) HeaderText="Project #"></GridColumn>
<GridColumn Width="450" AllowFiltering="true" Field=@nameof(DesignProjectViewModel.ProjectName) HeaderText="Name"></GridColumn>
<GridColumn Width="250" AllowFiltering="true" Field=@nameof(DesignProjectViewModel.ProgrammeSponsor) HeaderText="Sponsor"></GridColumn>
<GridColumn Width="250" AllowFiltering="true" Field=@nameof(DesignProjectViewModel.ProgrammeLead) HeaderText="Lead"></GridColumn>
<GridColumn Width="250" AllowFiltering="true" Field=@nameof(DesignProjectViewModel.ProjectManager) HeaderText="Project Manager"></GridColumn>
<GridColumn Width="250" AllowFiltering="true" Field=@nameof(DesignProjectViewModel.DesignManager01) HeaderText="Design Manager"></GridColumn>
<GridColumn Width="200" AllowFiltering="true" Field=@nameof(DesignProjectViewModel.Status) HeaderText="Status"></GridColumn>
<GridColumn Width="070" AllowFiltering="true" Field=@nameof(DesignProjectViewModel.Funding) HeaderText="F"></GridColumn>
<GridColumn Width="100" AllowFiltering="true" Field=@nameof(DesignProjectViewModel.Gate) HeaderText="Gate"></GridColumn>
<GridColumn Width="250" AllowFiltering="true" Field=@nameof(DesignProjectViewModel.DaDeliveryStage) HeaderText="Delivery Stage (DA)"></GridColumn>
<GridColumn Width="120" AllowFiltering="true" Field=@nameof(DesignProjectViewModel.ProjectGate) HeaderText="Project Gate"></GridColumn>
<GridColumn Width="150" AllowFiltering="true" Field=@nameof(DesignProjectViewModel.DesignTeamClassification) HeaderText="Classification"></GridColumn>
</GridColumns>
</SfGrid>
</div>
<style type="text/css" class="cssStyles">
.detailTable td {
font-size: 13px;
padding: 4px;
max-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.formLabelHeader {
font-weight: bold;
}
.tableCellAlignRight {
text-align: right;
}
</style>
@{
var currentRadarProject = (context as DesignProjectViewModel);
var customIsNonRadarProject = (currentRadarProject?.IsNonRadarProject) ?? false;
if (customIsNonRadarProject)
{
Y
}
else
{
N
}
}
.detailTable td {
font-size: 13px;
padding: 4px;
max-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.formLabelHeader {
font-weight: bold;
}
.tableCellAlignRight {
text-align: right;
}
SIGN IN To post a reply.
13 Replies
1 reply marked as answer
RN
Rahul Narayanasamy
Syncfusion Team
November 2, 2020 01:03 PM UTC
Hi DoomerDGR8,
Greetings from Syncfusion.
Query: Excel Like Filter with broken styles- I have noticed that the UI for the filter menus that open up in case of Excel-Type have lost their styles:
We have validated your query and checked the reported problem at our end. We could not reproduce the problem at our end. The excel filter dialog shown correctly. Find the below sample for your reference.
|
|
We could view the second screenshot which you have shared. Could you please share more information about that problem?
Also, could you please share the below details. It will be helpful to validate and provide a better solution.
- Share your _Host.cshtml file.
- Did you downloaded CSS reference from theme studio and referred in your _Host.cshtml file?
- Video demonstration of the problem.
Regards,
Rahul
RC
Roberto Conti
November 4, 2020 10:57 AM UTC
Hi,
Attachment: SyncfusionExcelFilterStyleIssue_589b8884.zip
same issue happens to me.
I had a reference to CSS downloaded from Theme Studio, but even after removing that reference the result is still the same.
I tried to remove every reference to other css, the only one that are still there are as follows:
<link rel='nofollow' href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link rel='nofollow' href="_content/Syncfusion.Blazor/styles/bootstrap4.css" rel="stylesheet" />
In the attached image you can see the result, it's the same as DoomerDGR8 posted.
Attachment: SyncfusionExcelFilterStyleIssue_589b8884.zip
RN
Rahul Narayanasamy
Syncfusion Team
November 5, 2020 01:18 PM UTC
Hi Roberto,
Sorry for the inconvenience.
We have validated your query and checked the reported problem at our end. We have checked the problem by generating theme from theme studio and referred in the application. But we could not reproduce the problem at our end. Find the below sample for your reference.
We have generated theme from theme studio and checked the problem for both material and bootstrap4 CSS.
|
|
If you are still facing the problem, then could you please share the below details. It will be helpful to validate and provide a better solution.
- Reproduce the problem in the provided sample and revert back to us.
- Did you face the problem in any specific version?
- Video demonstration of the problem.
- Share a simple reproduceable sample if possible.
Regards,
Rahul
DO
DoomerDGR8
November 7, 2020 05:56 AM UTC
I think I started off from the Blazor template August 2019 and after that, I have been only updating the Nugets but never thought about the css. I'm on Material theme. How can I get the CSS file?
RN
Rahul Narayanasamy
Syncfusion Team
November 9, 2020 12:41 PM UTC
Hi DoomerDGR8,
Query: I think I started off from the Blazor template August 2019 and after that, I have been only updating the Nugets but never thought about the css. I'm on Material theme. How can I get the CSS file?
We have validated your query and you can refer the CSS to your application using below way. Find the below code snippets and documentation for your reference.
|
<head>
<environment include="Development">
....
....
<link rel='nofollow' href="_content/Syncfusion.Blazor/styles/fabric.css" rel="stylesheet" /> // refer this (Or)
<!---CDN--->
@*<link rel='nofollow' href="https://cdn.syncfusion.com/blazor/18.3.47/styles/fabric.css" rel="stylesheet" />*@ //or refer this link for latest CDN CSS reference
</environment>
</head> |
Reference:
If you want to download your own customized theme, then please find the below documentation for your reference.
Reference:
Please let us know if you have any concerns.
Regards,
Rahul
DO
DoomerDGR8
November 9, 2020 05:16 PM UTC
This is what I have in the <head> section:
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>The Project</title>
<base rel='nofollow' href="~/" />
<link rel="stylesheet" rel='nofollow' href="css/bootstrap/bootstrap.min.css" />
<link rel="stylesheet" rel='nofollow' href="css/syncfusion-blazor-icons.css" />
<link rel="stylesheet" rel='nofollow' href="css/syncfusion-blazor-material.css" />
<link rel="stylesheet" rel='nofollow' href="css/fontawesome/all.min.css" />
<link rel="stylesheet" rel='nofollow' href="css/site.css" />
</head>
I have the mentioned files in the actual CSS folder. I'm on Material deal. Do I change them all?
RC
Roberto Conti
November 10, 2020 11:23 AM UTC
Hi Rahul,
after upgrading from 18.3.0.41 to 18.3.0.44 the issue is not reproduced anymore.
I also had these two lines in my _Host.cshtml file:
<link rel='nofollow' href="_content/Syncfusion.Blazor/styles/bootstrap4.css" rel="stylesheet" />
@*<link rel='nofollow' href="https://cdn.syncfusion.com/blazor/18.3.41/styles/bootstrap4.css" rel="stylesheet" />*@
When I uncommented the second line, the issue was also not reproduced, so I figured there was something wrong in _content/Syncfusion.Blazor/styles/bootstrap4.css in v.18.3.0.41
I'll try a more recent version once I've upgraded my project to .NET 5.
Thanks
RN
Rahul Narayanasamy
Syncfusion Team
November 10, 2020 02:25 PM UTC
Hi DoomerDGR8,
We have validated your query and we request you to upgrade to latest NuGet version and remove all the CSS reference and refer the below CDN CSS reference in your _Host.cshtml file. Please ensure the reported problem after referring the below CDN CSS reference,
Find the below code snippets and documentation for your reference.
|
<head>
<environment include="Development">
....
....
<!---CDN--->
<link rel='nofollow' rel='nofollow' href="https://cdn.syncfusion.com/blazor/18.3.47/styles/fabric.css" rel="stylesheet" /> //or refer this link for latest CDN CSS reference
</environment>
</head> |
If you are still facing the problem, then could you please share the sample to us. It will be helpful to validate and provide a better solution.
Regards,
Rahul
Marked as answer
RN
Rahul Narayanasamy
Syncfusion Team
November 10, 2020 02:25 PM UTC
Hi Roberto,
Thanks for the update.
Please get back to us if you need further assistance.
Regards,
Rahul
DO
DoomerDGR8
November 11, 2020 08:04 AM UTC
Hi!
I have to admit, I'm very lost now. I have made my project work by this:
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>The Project</title>
<base rel='nofollow' href="~/" />
<link rel="stylesheet" rel='nofollow' href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" rel='nofollow' href="css/site.css" />
<link rel="stylesheet" rel='nofollow' href="css/fontawesome/all.min.css" />
<!---CDN--->
<link rel="stylesheet" rel='nofollow' href="https://cdn.syncfusion.com/blazor/18.3.48/styles/material.css" rel="nofollow"/>
</head>
I'm not happy with this setup. Either the required CSS be inside the package (_css) or there should be installed into the wwwroot/css. Now I have updated to the latest again (18.3.48). I need to now follow-up with bootstrap versions as well. The only issue I see is that right now is that the two toolbar button I have in my screen shot above have lost the font awesome icons and appearing as bland buttons only.
I also created a new project using the SF Blazor template and selected a few controls along with grid. Same issues there. Grid with broken styles (Material theme) plus a lot of Input editor demos broken (Dropdown, Check/Radio boxes, buttons)
RN
Rahul Narayanasamy
Syncfusion Team
November 13, 2020 03:51 AM UTC
Hi DoomerDGR8,
Query: I also created a new project using the SF Blazor template and selected a few controls along with grid. Same issues there. Grid with broken styles (Material theme) plus a lot of Input editor demos broken (Dropdown, Check/Radio boxes, buttons)
We have validated your query with the provided information. Also, we have created a sample using Syncfusion Template studio with the mentioned controls(Grid, Dropdown, Checkbox, radio box and button). But we could not reproduce the reported problem. Find the below sample for your reference.
If you are still facing the problem, then could you please share the sample to us. It will be helpful to validate and provide a better solution.
Regards,
Rahul
DO
DoomerDGR8
November 17, 2020 05:53 AM UTC
With version 18.3.0.48 and my CSS/JS setup mentioned in my comment on Replied On November 11, 2020 08:04 AM UTC, I have a working solution. Till next update, I'm good. Thank you for the quick responses.
RN
Rahul Narayanasamy
Syncfusion Team
November 18, 2020 06:11 AM UTC
Hi DoomerDGR8,
Thanks for the update.
Please get back to us if you need further assistance.
Regards,
Rahul
SIGN IN To post a reply.
- 13 Replies
- 3 Participants
- Marked answer
-
DO DoomerDGR8
- Nov 1, 2020 01:19 PM UTC
- Nov 18, 2020 06:11 AM UTC