_Dropdown.razor
Hello,
I just started working with metronic blazor template.
Search icon and other icons of _Dropdown.razor component does not work.
I think that @((MarkupString)KTTheme.GetIcon("magnifier", "fs-2 fs-lg-1") function does not return something
Thank you
Replies (11)
Working with the Metronic Blazor template and its _Dropdown.razor component can be quite insightful, especially when troubleshooting how icons render through the KTTheme.GetIcon method. While exploring similar development challenges, I came across paraulogic.app, which offers an engaging word puzzle experience built around creative logic and problem-solving. Just like optimizing UI components, games like this show how design and usability go hand in hand. For anyone interested in discovering more innovative online tools, it’s worth checking out.
When working with the Metronic Blazor template, if the search icon and other icons in the _Dropdown.razor component are not displaying correctly, it could be due to several reasons related to how the icons are being retrieved and rendered by the KTTheme.GetIcon() method.
Hi Christos,
Thank you for reaching out to us.
We checked this issue in the latest Metronic version and all icons seem to be rendered correctly.
Have you modified anything in our codebase?
Do you have this problem with some specific icons or with all KTTheme.GetIcon usages in the theme?
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi Lauris,
I have the same problem with all GetIcon usages.
Except from that, i was not able to run application according to your guide.
Finally, i opened the project with Visual Studio 2022 and I had not any problem to build it and run it, except from that icons.
At your disposal,
Christos Bokos
Hi Christos,
Did you have any errors?
Before running the application, you need to build assets with our Gulp or Webpack scripts.
You can refer to our Getting Started docs.
https://preview.keenthemes.com/blazor/metronic/docs/getting-started
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi Christos,
I am sorry to hear that.
Could you please attach your error message?
We will check the installation flow and will try to reproduce this error.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi again Lauris,
I will run the installation steps again later and I will come back with more details about the errors.
Thank you,
Christos Bokos