Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Row filtering #211

Closed
Moxemka opened this issue Mar 6, 2024 · 2 comments
Closed

Row filtering #211

Moxemka opened this issue Mar 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Moxemka
Copy link

Moxemka commented Mar 6, 2024

Hello,

Is there any solution for filtering columns

e. g.

I have rows and child rows

Parent1:
Foo1,
Foo2
Parent2:
Foo1,
Foo3

After filtering by label parent1:
Parent1
Foo1,
Foo2

After filtering by Foo1:
Parent1:
Foo1,
Parent2:
Foo1

Alredy tried:
Getting rows from ctx, filter them, then using $set

With this solution tasks dont stick to rows propperly and gantt throws an error in taskFactory.getHeight cant read height

Also throws a critical error in dependency component when dependencies are present (cant read height in $$self.$$.update)

What i need:

Tasks remain in gantt ctx, because i calculate interferance within different rows and I need tasks current positioning

Any solution would be helpful

@ANovokmet
Copy link
Owner

Because you're filtering rows, the old tasks can't find the now missing rows. I have to work on error handling here.

For now, until it is fixed, you can try filtering the tasks first, $set-ing the tasks, and setting the filtered rows next (maybe you will need to set the rows in a setTimeout call).

@ANovokmet ANovokmet added the bug Something isn't working label Apr 10, 2024
@ANovokmet
Copy link
Owner

In v4.3.0 tasks that reference rows that do not exist are allowed. When a row with the id appears, the tasks will then render appropriately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants