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

ComboBox open state by default

2 Answers 815 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Shivali
Top achievements
Rank 1
Shivali asked on 29 Dec 2020, 08:37 AM
I have a scenario where I want to keep the the comboBox popup always opened. Is there way to do it? I dont want to have any event for close or open, it should just always remain opened.

2 Answers, 1 is accepted

Sort by
0
Accepted
Hetali
Telerik team
answered on 29 Dec 2020, 10:55 PM

Hello Shivali,

In order to keep the Kendo UI ComboBox popup open always, use the preventDefault method in the close event. To open the popup when the page load, you can use the toggle method. For example:

<kendo-combobox #combobox [data]="listItems" (close)="close($event)">
</kendo-combobox>

@ViewChild("combobox", {static: false}) public combobox;

ngAfterViewInit() {
  this.combobox.toggle();
}

close(e) {
  e.preventDefault();
}

In this StackBlitz example, the Kendo UI ComboBox popup opens when the page loads and always remains open.

Please let me know if this helps or if I can further assist you.

Regards,
Hetali
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
Shivali
Top achievements
Rank 1
answered on 30 Dec 2020, 05:46 AM
Thanks. This works! :-)
Tags
ComboBox
Asked by
Shivali
Top achievements
Rank 1
Answers by
Hetali
Telerik team
Shivali
Top achievements
Rank 1
Share this question
or