I have a ComboBox, and when the user opens it, I first want to execute some code that takes a while. Only when that code is completed, I want to open the dropdown. Is this possible?
1 Answer, 1 is accepted
0
Wissam
Telerik team
answered on 11 Oct 2023, 01:52 PM
Hello, Ewald,
Yes this is possible by handling the opened state of the ComboBox component in controlled mode.
In the below example, I am setting the opened prop to the `open` state variable. In the onOpen event handler, I am setting the `open` variable to true. Before that, you can execute the needed code and if necessary set the `open` variable in a `setTimeout` method: