How to make menu hidden and show hamburger button on nav header by default.

1 Answer 970 Views
Menu ResponsivePanel
Jay
Top achievements
Rank 1
Iron
Iron
Jay asked on 01 Jul 2021, 08:13 PM

I have a dashboard page that will be displayed on a larger flat screen TV. I don't what the menu bar showing just the hamburger button on the nav bar. How would I do this for a large screen format. I'm not sure what to change on the kendo-responsivepanel

How do I configure the button to be visible and the responsive-panel to be hidden by default?

 <button id="configure" class="k-rpanel-toggle k-button k-primary btn-toggle">
                <span class="k-icon k-i-menu"></span>
 </button>

....

 <div id="responsive-panel" class="navbar navbar-dark navbar-collapse bg-light mb-4">
        <kendo-responsivepanel name="responsive-panel" auto-close="false" breakpoint="758" orientation="top">
            @(Html.Kendo().Menu()
                        .Name("Menu")
                        .Items(items =>
                        {                          
                            items.Add().Text("Schedule").Action("Index", "Schedule", new { area = "" });
                            items.Add().Text("Locations")
                                .Items(ddl =>
                                {
                                    ddl.Add().Text("Brownwood").Action("Index", "Home", new { locationCode = "BW" });
                                   . . . 
                                });
                        })
            )
           
        </kendo-responsivepanel>
    </div>




1 Answer, 1 is accepted

Sort by
0
Jay
Top achievements
Rank 1
Iron
Iron
answered on 01 Jul 2021, 08:24 PM
I figured it out. Changed the #configure css to display:block and modify the kendo-responsivepanel breakpoint attribute. 
Tsvetomir
Telerik team
commented on 06 Jul 2021, 06:32 AM

Hi Jay, I am happy to hear that you have managed to resolve the case on your own. Indeed, it would be very helpful if you could share the modified version of the solution so that if other members of our community lend on this thread, they could take a look at the solution.
Tags
Menu ResponsivePanel
Asked by
Jay
Top achievements
Rank 1
Iron
Iron
Answers by
Jay
Top achievements
Rank 1
Iron
Iron
Share this question
or