Anybody know why my dropdown would render like this?
I am new to Blazor I did notice in the getting started a mention of a stylesheet that doesn't exist.
My code is:
enchev
February 16, 2020, 7:58pm
2
You need to include our CSS in the host page similar to our demo:
You will need our JavaScript as well:
<link rel="icon" href="favicon.ico">
<link href="css/site.css" rel="stylesheet">
<link href="_content/Radzen.Blazor/css/default.css" rel="stylesheet">
</head>
<body>
<app>
@(await Html.RenderComponentAsync<App>(RenderMode.ServerPrerendered))
</app>
<script type="text/javascript" src="js/highlight.pack.js"></script>
<script type="text/javascript" src="blazor.polyfill.min.js"></script>
<script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
<script src="_framework/blazor.server.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-73079289-4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-73079289-4');
function setTitle(title) {
document.title = title;
Thanks when I tried this before I'm sure it said it couldn't find the stylesheet in the debug console but today it's working fine so maybe I had a typo, thanks for your help.