Closed bhavyasf closed 2 years ago
Hi Bhavyasf,
Greetings from Syncfusion support.
By default, when opening the popup the focus will be retained in the parent element. Due to this, we could not focus the textbox element. So, we can achieve the requested requirement by focus the input text in the open event arguments.
public onOpen(args) {
this.multiSelect.focusOut();
setTimeout(() => {
document.getElementById('inputNative').focus();
}, 10);
}
public onSelect(args) {
this.multiSelect.focusIn();
}
Sample: https://stackblitz.com/edit/angular-skpmdn-uycc8k?file=app.component.ts
Regards, Berly B.C
Thanks a lot @BerlyChristopher! Also I want to add that can we customize the template where values are stored ? Like we have 6 selected items, 3 we have shown in the input and rest of them we can show as + 3 more and by clicking on +3, we can open a small dropdown that we have remaining tags ?
Hi Bhavyasf,
We checked your query. We request that you to use the Box mode for your requirement. Please refer the following sample.
Sample link: https://stackblitz.com/edit/angular-skpmdn-9vbj6h?file=app.component.ts
Regards, Berly B.C
We are closing this issue since there is no recent activity. Feel free to reopen this and update your comments for the reinvestigation.
Hi there, I was using syncfusion multiselect component in Angular. In the dropdown using
#headerTemplate
, I was adding a new input for searching purposes(I want to keep search seperate from selected values in the input), however, I was unable to focus on the input in theheaderTemplate
. Does anybody knows what is the underlying issue behind it? the code and the SS is given below app.component.htmlapp.component.ts
app.component.css
you can see the input box in the top of the dropdown which I was unable to focus at all!