This is a migrated thread and some comments may be shown as answers.

Toggle drawer mini mode / expanded mode from within the drawer

2 Answers 208 Views
Drawer
This is a migrated thread and some comments may be shown as answers.
erwin
Top achievements
Rank 1
Veteran
Iron
erwin asked on 06 Jun 2019, 02:27 PM

Hi,

how can I toggle the drawer mini mode / expanded mode from within the drawer itself.

The samle code I found has the toggle button in some other control, for example the toolbar.

I would like to have the drawer in mini mode and one item  in the drawer to expand / collapse it.

When I expand the drawer from a handler function for itemClick, it expands but collapses at the end of the handler.

 

Regards

Erwin

2 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 07 Jun 2019, 12:22 PM
Hello Erwin,

Yes, indeed you can do that with the Kendo UI Drawer component. Please refer to the https://dojo.telerik.com/eTagatev/3 example, where toggle button is placed as a first item in the item list. 

Regards,
Boyan Dimitrov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
erwin
Top achievements
Rank 1
Veteran
Iron
answered on 07 Jun 2019, 12:27 PM

Hello Boyan,

Thanks for the sample. Works like a charm!

Regards

Erwin

Tags
Drawer
Asked by
erwin
Top achievements
Rank 1
Veteran
Iron
Answers by
Boyan Dimitrov
Telerik team
erwin
Top achievements
Rank 1
Veteran
Iron
Share this question
or