primeng icon indicating copy to clipboard operation
primeng copied to clipboard

AutoComplete panel is hidden in DataTable

Open adrienverge opened this issue 10 years ago • 5 comments

When using an AutoComplete component in a DataTable, the suggestion panel doesn't go out of the table row. As a consequence, only one or two choices can be clicked. See the following screenshot:

datatable autocomplete

The code I use is a simple copy-paste from the doc: a "multiple" autocomplete in a "template" column. (I tried to make a plunker snippet with PrimeNG, but I had a hard time linking the libs...)

<p-dataTable [value]="groups">
  <p-column field="name" header="Name"></p-column>
  <p-column field="content" header="Content">
    <template let-group="rowData">
      <p-autoComplete [(ngModel)]="group.items"
                      [suggestions]="filteredCountriesMultiple"
                      (completeMethod)="filterCountryMultiple($event)"
                      [minLength]="1"
                      field="name"
                      [multiple]="true"
                      style="width:100%">
      </p-autoComplete>
    </template>
  </p-column>
</p-dataTable>

adrienverge avatar May 09 '16 16:05 adrienverge

You need to set overflow:visible in the column;

<p-column field="content" header="Content" style="{'overflow':'visible'}">

cagataycivici avatar May 16 '16 09:05 cagataycivici

i have a problem rendering autocomplete within Datatable. The Autocomplete suggestions are opened for all the columns of all rows irrespective of desired column for a specific row.

Here is the code-snippet: autocomplete-issue_code Any help is much appreciated.

autocomplete-issue

sumanballapuramgh avatar Jul 25 '16 11:07 sumanballapuramgh

@sumanballapuramgh, did you find any solution for your issue?

vvvttt avatar Oct 05 '16 18:10 vvvttt

I try using style="{'overflow':'visible'}" but error persist:

captura de pantalla 2016-10-14 a las 20 39 34

I'm using:

  • Angular 2 Final release.
  • primeng 1.0.0-beta.17
  • primeui 4.1.15
  • Olympos theme 1.0.2

deoxyseia avatar Oct 15 '16 01:10 deoxyseia

Please use appendTo="body"

harveenchadha avatar Sep 19 '17 10:09 harveenchadha