PDA

View Full Version : filterBy and grouping view issue



alebar
18 Nov 2010, 7:34 AM
Hi all,
I'm looking for a suggestion...
So, I've implemented a UI that is basically a grid (with grouping view) where a user can hide/unhide rows. As for adding them I simply use insert() method and everything is fine. Otherwise in order to remove given rows I wouldn't use remove() but filterBy() store method.
Now the problem is that once I call this method (filterBy) I lose sorting of filtered rows.

Let's suppose I've this situation:

GROUP1
record a1
record B
record a2
record c
record d

why when I call filterBy(return record a && record b) I obtain something like:

GROUP1
record a1
record a2
record B

instead of:

GROUP1
record a1
record B
record a2

The problem persists even if I sort store immediately after filtering....
Where I'm wronging?

Many thanks in advance