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.

How to implement filtering for each column in ngx swimlane ?

See original GitHub issue

I have added multi-select drop down under table headers which contains the Distinct values within that column as shown below Image, but not able to select that values(client side event is not getting triggered):

image

Is there any other way to achieve this feature. Any working example ?

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior Currently I have added the multi-select drop down control under headers, but i am not able to select any values in that multi-select drop-down. It is acting like a disabled control

Expected behavior It should select values in dropdown control and accordingly filter the data in grid.

Reproduction of the problem

What is the motivation / use case for changing the behavior?

Please tell us about your environment: Local

  • Table version: 0.8.x 11.3.2

  • Angular version: 2.0.x Angular 4

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

3reactions
hirenkukadiyacommented, Jul 18, 2019
<ngx-datatable-column name="Task" [width]="180"> 
 <ng-template let-column="column" ngx-datatable-header-template>
    {{column.name}}
  <input type="text" class="managetextfilter" placeholder="Type to filter"(keyup)="updateFilter($event,'name')"/> 
 </ng-template>
  <ng-template ngx-datatable-cell-template let-rowIndex="rowIndex" let-value="value" let-row="rows">
    <span title="Double click to edit"  (dblclick)="editing[rowIndex + '-task'] = true" *ngIf="!editing[rowIndex + '-task']">{{value}}</span>
  </ng-template>
</ngx-datatable-column>
0reactions
adarsha17commented, Mar 15, 2019

Thanks sagar for the clarification. Is it possible could you share the sample code?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implementing NGX Datatable filtering on all columns
Basically i just want to allow my filter to apply to more than a single column, without implementing code to handle every column....
Read more >
Implementing NGX Datatable filtering on all columns-angular.js
Full rows are shown (because filter is applied to row array); Column names to be searched can also be specified by hand to...
Read more >
Angular Ngx Datatables Filter All Columns - StackBlitz
Filter all column with one text input search. [Edit on StackBlitz ⚡️](https://stackblitz. com/edit/. angular-ngx-datatables-filter-all-columns).
Read more >
swimlane/ngx-datatable - Gitter
Hey All, I just want to know how to implement table head column span using #ngx-datatable ?? Luis ...
Read more >
ngx-datatable - Angular component for presenting large and ...
Angular datatable for handling large and complex datasets in table format.
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