Impoisible to use the filterField property in p-column (PrimeNG)

0

I am trying to use the filterField property that is applied to the p-column component within p-dataTable of the framework PrimeNG .

I have tried several ways:

<p-column header="Categoria" field="id_categoria.nombre_categoria" [style]="{'width':'10%'}" sortable="true" filterField="id_categoria._id"></p-column>

In this way, when I debug the filtering method within the dataTable component, the property is not attached to the object.

<p-column header="Categoria" field="id_categoria.nombre_categoria" [style]="{'width':'10%'}" sortable="true" [filterField]="id_categoria._id"></p-column>

And so, I throw an exception because the object that corresponds to the row that is being painted is lost.

I am using the version 5.2.0-rc.2 of primeng

Any ideas? Thanks in advance!

    
asked by Hictus 25.01.2018 в 10:11
source

0 answers