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

Kendo-split-button close the drop down dynamicallyically

2 Answers 5 Views
SplitButton
This is a migrated thread and some comments may be shown as answers.
Jyothi
Top achievements
Rank 1
Veteran
Jyothi asked on 04 Feb 2021, 01:58 PM

Hi,

 

There is a requirement that I need to close the button dynamically when one of the dropDown is clicked. How do I close the drop down programatically? We need this asap and the document is not clear on how to achieve this. 

Regards.

Jyothi

2 Answers, 1 is accepted

Sort by
0
Accepted
Preslava
Telerik team
answered on 05 Feb 2021, 09:40 AM

Hi Jyothi,

I am not sure that I understand the case correctly. Thus I will provide some general information according to my assumption. In case I am on the wrong way, please correct me.

In the SplitButton, when an item from the drop-down list is selected, the drop-down closes.

Here is an example, showing this default behavior:

https://stackblitz.com/edit/angular-qhpy1t-ftyznk?file=app/app.component.ts 

To open or close the drop-down programmatically, the toggle() method can be used. Please note, that when this method is used the open and close events are not be fired.

Here is an example, demonstrating this approach:

https://stackblitz.com/edit/angular-cmbhrl-hggaxb?file=app/app.component.ts 

I hope this helps. Let me know should there be further questions.

Regards,
Preslava
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Jyothi
Top achievements
Rank 1
Veteran
answered on 05 Feb 2021, 12:26 PM

Hi Preslava,

Great. Thanks. That is exactly what I was looking for. Thanks for the prompt reply.

Regards,

Jyothi

Tags
SplitButton
Asked by
Jyothi
Top achievements
Rank 1
Veteran
Answers by
Preslava
Telerik team
Jyothi
Top achievements
Rank 1
Veteran
Share this question
or