|
[HttpPost]
public ActionResult Index(string[] multiselect)
{
var SelectedValues = multiselect;
//store the value to the database
return View();
} |
|
document.addEventListener("click",function (e){
if(e.target.classList.contains("e-chips-close")){
alert("clear icon is clicked");
//Make request here to delete all the records
}
}); |
|
<code>
@Component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: [ './app.component.css' ],
encapsulation: ViewEncapsulation.None,
})
</code> |
|
<code>
public onCreate(args: {[key: string]: object}, ele: DropDownList) {
(ele.element.querySelector('span.e-chips-close.e-close-hooker') as HTMLElement).classList.add('customClass');
}
</code> |
|
<code>
<ejs-multiselect id='sample-list1' #multi [dataSource]='sportsData' [mode]='default' [fields]='fields' [placeholder]='waterMark' [showClearButton]="true" (created)="onCreate($event,multi )"></ejs-multiselect>
</code> |
|
<code>
.e-multi-select-wrapper .e-chips-close.e-close-hooker.customClass {
display: none !important;
}
</code> |
HiThank you very much for reply. Only problem I am getting after deploying to beta server is in Google chrome I can't see 'X' with each item. see attached file.However, I IE I can see.Is their anything to do with styleUrls: ['../../../../node_modules/@syncfusion/ej2-dropdowns/styles/material.css']
Attachment: cross2_b0e30c58.7z
|
<code>
@Component({
encapsulation: ViewEncapsulation.None,
})
</code> |
|
"font-src 'self' data: https://fonts.gstatic.com/;"
|