Mohan vel
Mohan vel

Reputation: 543

How to remove 'select all' option from multiselect listbox

I have a multiselect dropdown. There is a 'Select All' which I want to remove as requested by my client. How can I do that?

<asp:ListBox ID="CmbInterviewer" runat="server" SelectionMode="multiple" CssClass="form-border"></asp:ListBox>
$("#CmbInterviewer").multiselect({
  includeSelectAllOption: true,
  enableFiltering: true,
  numberDisplayed: 10,
  nonSelectedText: '<-Select->',
  buttonWidth: '100%',
  enableCaseInsensitiveFiltering: true,
  maxHeight: 200
});

enter image description here

Upvotes: 0

Views: 2370

Answers (1)

Karan Kiri
Karan Kiri

Reputation: 316

Just try passing

includeSelectAllOption: false 

into multi-select settings.

Upvotes: 2

Related Questions