question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filtered columns interfering each other

See original GitHub issue

I’m using three columns with the input column filter, but I’ve just noticed they’re interfering each other. When I seach in one column, it filters the results found not only in this column but also in the others.

These are the table columns:

<th data-field="nombre" data-sortable="true" data-filter-control="input">Poblaciones</th>
<th data-field="provincia" data-sortable="true" data-filter-control="input">Provincia</th>
<th data-field="pais" data-sortable="true" data-filter-control="input">País</th>
<th data-field="importe_portes" data-sortable="true">Importe Portes</th>
<th data-field="operate" data-formatter="formatoPortes" data-events="accionesPortes">Acciones</th>

And this is part of the json I get:

[  
   {  
      "id":"1",
      "provincias_id":"1",
      "cod_municipio":"1",
      "DC":"0",
      "nombre":"Alegr\u00eda-Dulantzi",
      "importe_portes":"0.00",
      "modified_at":"2015-11-23 16:32:46",
      "provincia":"Araba\/\u00c1lava",
      "pais":"Spain"
   },
   {  
      "id":"2",
      "provincias_id":"2",
      "cod_municipio":"1",
      "DC":"9",
      "nombre":"Abengibre",
      "importe_portes":"0.00",
      "modified_at":"2015-11-30 10:24:02",
      "provincia":"Albacete",
      "pais":"Spain"
   }
]

Apparently nothing misconfigured. If I search through “poblaciones”, it also filters through “provincias” and “paises”.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
djhvscfcommented, Apr 19, 2016

I think that line of code should be changed to:

if (this.options.sidePagination === 'server') {
      return;
}

@dabros can you open a PR with this change?

0reactions
zoltanmariccommented, May 11, 2016

Hi! Thanks for fixing the issue. When will this fix be released?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom datagrid filters appear to interfere with each other
In the above example if both columns have a filter added only the key filter will work, the accepts method in the value...
Read more >
Guidelines and examples for sorting and filtering data by ...
You filter data to display only the rows that meet criteria that you specify and hide rows that you do not want displayed,...
Read more >
Solved: multiple slicers affecting each other?
Solved: Hi all: Good morning! I have a maintenance notice table to show different fields/info- pipeline name, significance [1-5], dates, Scheduler.
Read more >
Multiple Tables, both with Column Filter Footers, Interference
I have two tables I am identifying with a class name. The column filters work on the first table but not in the...
Read more >
Filter by condition in Google Sheets and work with filter views
Click the Filter icon on your Google Sheets column and then OK to ... They can be used by different users without interfering...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found