You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/drawer-prevent-collapse.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,9 @@ I would like to prevent the Drawer from collapsing when an item from the navigat
33
33
>caption Stop the Drawer from collapsing on item click
34
34
35
35
````CSHTML
36
-
@* Toggle the expanded or collapsed state only by a button click *@
36
+
@* Toggle the expanded or collapsed state only by a button click. Clicking on a Drawer item will navigate you to the value of the Text property of the DrawerItem class. See the SelectAndNavigate method for reference *@
37
+
38
+
@inject NavigationManager navManager
37
39
38
40
<TelerikDrawer @bind-Expanded="@DrawerExpanded"
39
41
Data="@Data"
@@ -48,14 +50,14 @@ I would like to prevent the Drawer from collapsing when an item from the navigat
48
50
{
49
51
@* stop the propagation of the onclick event to prevent the drawer from collapsing *@
50
52
@* Use onclick to handle manual item selection and toggle the selected class *@
0 commit comments