Drawer Mini Mode - expand/collapse on first item click

1 Answer 416 Views
Drawer
ashutosh
Top achievements
Rank 1
Iron
Veteran
ashutosh asked on 26 May 2021, 03:24 PM

Hi team,

Can we create a drawer with Mini Mode, but allow user to expand collapse it on the click of first item? instead of the extra toolbar div above?

I tried creating it in this dojo (https://dojo.telerik.com/uBAnorUY/7), it expands the drawer but also collapse it after expansion.

appreciate any help.

ashutosh

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 31 May 2021, 01:29 PM

Hello Ashutosh,

This can be achieved the same way as it is in the toggleDrawer click function. Just to make sure the logic is working correctly disable the automatically collapsed when an item is clicked: autoCollapse: false. 

Here is a small Dojo demo I prepared demonstrating the above:

Let me know if you have any questions.

Regards,
Nikolay
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Drawer
Asked by
ashutosh
Top achievements
Rank 1
Iron
Veteran
Answers by
Nikolay
Telerik team
Share this question
or