Possible to remove the input clear icon

1 Answer 230 Views
MultiSelect
Brian
Top achievements
Rank 2
Brian asked on 22 Dec 2022, 01:42 AM

This is generated with this code snippet:

            <kendo-multiselect
              [checkboxes]="true"
              [autoClose]="false"
              [data]="listItems"
              [clearButton]="false"
              formControlName="referenceType"
              #multiselect
              [style.width.px]="350"
              textField="name"
              valueField="id"
              [itemDisabled]="itemDisabled"
            >
            </kendo-multiselect>

I'd like to remove the X clear icon.  Is this possible?

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 26 Dec 2022, 07:05 AM

Hi Brian,

Thank you for the provided screenshot.

There is no built-in option that can be used to remove the clear icon from the tags. However, with custom CSS, this could be achieved:

  .k-input .k-chip-actions .k-icon.k-i-x-circle{
    display: none;
  }

Here is an example:

https://stackblitz.com/edit/angular-prqidj

Please keep in mind that customizing components with CSS isn't something that is supported by the suite and should be used at your own discretion.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
MultiSelect
Asked by
Brian
Top achievements
Rank 2
Answers by
Martin
Telerik team
Share this question
or