New to Telerik UI for Blazor? Start a free 30-day trial
Drawer for Navigation
Updated on Oct 1, 2026
The Drawer is a different kind of a menu that is commonly used to navigate between pages in the app - it can generate the needed links for you through its UrlField when data binding.
To use the Drawer for navigating between pages:
-
Add the Drawer to the
MainLayout.razorof your app. -
Put the
@Bodytag in the<DrawerContent>tag of the drawer. -
Provide a collection of models that describe the pages you want the user to navigate to.
-
The
UrlFieldhas a default value (Url) and that will be used if present in the model even if you do not define it explicitly. -
The component uses the
NavigationManagerfrom the framework to perform the navigation based on the value from theUrlField.- If you have a template that adds anchors, or use a click event to navigate the user yourself, this may lead to double navigation and errors, especially if your model has a field called
Url. To avoid such problems, either let the Telerik component do the navigation and remove the application-specific code that does it as well, or remove the URL setting (either rename the model field, or point theUrlFieldto a non-existing field).
- If you have a template that adds anchors, or use a click event to navigate the user yourself, this may lead to double navigation and errors, especially if your model has a field called
Use the Drawer for Navigation in
MainLayout.razor
Loading ...
Additional Examples
- A GitHub sample project that showcases Drawer as side navigation.
- KB article on how to select a Drawer item when the page loads.