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.

Filtering problem on data table

See original GitHub issue

Hello everyone,

I am facing problem on filtering. Both column-filter and table-filter does not work if I use template inside datatable as slot on that specific coloumn.

<template #category="{item}">
    <td>
        <template v-if="item.category">{{item.category.category}}</template>
        <template v-else>
            <CBadge color="danger"> Category Not found</CBadge>
        </template>
    </td>
</template>                                       

My question is:

  1. Is there any wrong the way I am doing things?
  2. What I am missing?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
nnnayeemcommented, May 8, 2020

Thank you @woothu I get it now. I was thinking table will filter the string that is generated inside td but it actually filters the data that is actually passed to the coloumn key.

0reactions
agmansi970commented, Nov 23, 2021

React core ui CDatatable tableFilter is not working and showing No filtering results

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems with filtering data in table - Microsoft Community Hub
Hello,. I have a project for uni that I have to do but these 2 problems are standing in my way. ... Here...
Read more >
Having an issue with a filter not working — DataTables forums
We have multiple filters and we've been working really well with them. I ran into one that doesn't seem to work, and I...
Read more >
Problem Filter Data Table not working - Studio - UiPath Forum
Hi, I would like to generate a new table from an existing table that has to be filtered as follows, but these filters...
Read more >
Filtering data causing formatting issues | Excel Forum
Filters work by hiding entire rows. You can't filter one table without affecting the visibility of any adjacent cells. You might be better...
Read more >
DataTable Filtering - Webix
This is a text filter used for columns with numbers. It finds data records by comparing values from the column to the typed...
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