getting filteredItems

34 views
Skip to first unread message

Emanuele Ziglioli

unread,
Feb 27, 2012, 11:06:46 PM2/27/12
to SlickGrid
Hi again,

I'd like to fetch the filteredItems array from a dataview in order to
display it on a map.
Currently I can get the size of the dataview filtered rows and a
single item, or the whole lot.
But I can't get to filteredItems (it's private). Maybe there's a way
in Javascript (there must be a way, it's js!), currently trying with:

dataview.__proto__getFilteredItems = function(){
return filteredItems;
};

Any js ninja out there?

Cheers
E

Michael Leibman

unread,
Feb 28, 2012, 1:36:40 PM2/28/12
to slic...@googlegroups.com
Filtered items are exposed by the DataView via the "getItem(index)" and "getLength()" methods.

Emanuele Ziglioli

unread,
Feb 28, 2012, 11:11:36 PM2/28/12
to SlickGrid


On Feb 29, 7:36 am, Michael Leibman <michael.leib...@gmail.com> wrote:
> Filtered items are exposed by the DataView via the "getItem(index)" and
> "getLength()" methods.

thank you, am a bit allergic to getters, coming from the java
world :-)
it would be nice to be able to access the whole array though, I could
display things all at once or calculate things like the data extent
without having to copy the whole array.
Next I want to understand how grouping works, that could be useful.

Reply all
Reply to author
Forward
0 new messages