Completed
Last Updated: 21 Jan 2020 10:32 by ADMIN
ahmed
Created on: 10 Jan 2020 11:36
Category: Drawer
Type: Feature Request
0
Prevent Drawer form Auto Close after selection

Hi, I am using PanelBare inside the Drawer, and I need to override the default behaviours of the drawer and not to close automatically after tab action, in order to be able to select and navigate inside the Drawer content (Panel Bar, or any other navigable widget).

close the Drawer, can be handled by the user separately from the events of the Drawer Content (Panel Bare Events in my case)

3 comments
ADMIN
Viktor Tachev
Posted on: 21 Jan 2020 10:32

Hi Ahmed,

 

When the Drawer is configured to be shown as overlay the widget will overlap the associated content. Having a toggle button can be used when the Drawer has push mode enabled.

 

Regards,
Viktor Tachev
Progress Telerik

Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.
ahmed
Posted on: 17 Jan 2020 14:33

Dear Viktor,

This is super helpful.

However, in the below example if the mode is "overlay" is there is a way to keep the toggle button, to be able to toggle the menu manually? 

ADMIN
Viktor Tachev
Posted on: 17 Jan 2020 09:03

Hi Ahmed,

 

The Drawer widget has hide event that can be used when you would like to prevent the widget from closing. In order to keep the drawer open call preventDefault() in the hide event handler. Check out the example below for reference:

 

https://dojo.telerik.com/UyIMAzev

 

Regards,
Viktor Tachev
Progress Telerik

Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.