qx.ui.table.model.Filtered not working after adding new rows

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

qx.ui.table.model.Filtered not working after adding new rows

Alicia
Hello,

I'm Alicia, this is my first mail to the list. 

First of all, congratulations for your work with qooxdoo, it's a really fantastic tool and the documentation is very useful so thank you very much.

I think I've found a bug or maybe I don't know how to use the table's filter correctly. "qx.ui.table.model.Filtered" is not working after adding new rows

I have created an example, so you can have a look  http://tinyurl.com/mmfwda4
Follow these steps: 
1.- click "Hide false"
2.- click "add rows" => the new rows aren't filtered
3.- click "Show all" =>  the new rows disappear 

Am I doing something wrong? Or is it a bug?

Thanks!

Alicia

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: qx.ui.table.model.Filtered not working after adding new rows

N. Schröder
Hello Alicia,

welcome to qooxdoo :-)

And yes, you found a bug in the "Filtered Table Model" which is actually quite old (see the discussion in [1] and the bug report in [2]) but still not fixed.

You can, however, work around this bug by using tableModel.setData instead of tableModel.addRows. You also have to reapply all active filters after having added additional rows to the model. I have slightly modified your example so you can see how it works:
http://tinyurl.com/lmce9qe

Regards,

  Norbert


[1] http://qooxdoo.678.n2.nabble.com/filtered-table-with-checkboxes-problem-td4050308.html#a4051261
[2] http://bugzilla.qooxdoo.org/show_bug.cgi?id=3100



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: qx.ui.table.model.Filtered not working after adding new rows

Alicia
It's working! Thank you very much :)