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

filtering doesn't work on columns with a renderfunction #10

Open
shmul opened this issue Oct 24, 2017 · 1 comment
Open

filtering doesn't work on columns with a renderfunction #10

shmul opened this issue Oct 24, 2017 · 1 comment

Comments

@shmul
Copy link

shmul commented Oct 24, 2017

It seems that the filter function completely skips the columns for which a renderfunction is defined. I'm not sure whether that was intended or not. In anycase, perhaps a new function should be defined that retrieves the content on which the filtering should work.

Cheers,
Shmul

@syshex
Copy link
Contributor

syshex commented Jul 19, 2018

Hi !
The reason it doesn't work is because the sort and filter methods operate on the raw input. (In the case of ajax=true + delegate=true, this should be handled server side).

The only way to go about this sorting and filtering of data on columns with render function would be to somehow retrieve the rendered block and somehow figure out what (from all the html of each of the cell) should be used as the data to sort and filter. I don't really see a way to do this automatically.

Maybe have another function that should return the data to use as filter and sort ?

Do you have any idea, time , to give a look into this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants