<ejs-multiselect id='multi-template' #template [dataSource]='multidata' [fields]='multifields' [mode]='box'
(close)='onClose($event)' (created)='onCreate($event)' [placeholder]='multiwatermark'>
. . . . . . . . . . . . . . . . . . . . . . . .
</ejs-multiselect> |
public onClose: EmitType<PopupEventArgs> = (e: PopupEventArgs) => {
e.cancel = true;
};
public onCreate: EmitType<Object> = (e: Object) => {
this.mulObj.showPopup();
}; |
<ejs-multiselect id='sample-list2' [dataSource]='sportsData' [mode]='box' [fields]='fields' [placeholder]='waterMark' [closePopupOnSelect]="false" [popupHeight]='height'></ejs-multiselect> |
public height: string = "200px"; |
Hi Sunithra,Good day to you.We have checked the reported scenario and while checking the screenshot you have shared it seems you have used box mode in multiselect. In box mode the popup will be closed after value has been selected. So, in box mode we suggest you to use closePopupOnSelect as false. In MultiSelect default height will be set as auto. The scroller will be created based on the popupHeight. So, change the height of the popup use the popupHeight property. Please refer the code snippet[html]
<ejs-multiselect id='sample-list2' [dataSource]='sportsData' [mode]='box' [fields]='fields' [placeholder]='waterMark' [closePopupOnSelect]="false" [popupHeight]='height'></ejs-multiselect>[ts]
public height: string = "200px";Could you please check the above sample and get back to us if you need any further assistance on this?Regards,Vinoth Kumar S