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
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:
To open or close the drop-down programmatically, thetoggle() method can be used. Please note, that when this method is used the open and close events are not be fired.
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/.