[dojo-contributors] Dojo.data + filter of nest structures

ben hockey neonstalwart at gmail.com
Tue Mar 8 20:00:17 EST 2011


looking for some clarification - see inline

On Mar 8, 2011, at 4:43 PM, Karl Tiedt wrote:

> In our current project we came across a problem with Tree like
> structured data and filtering and wanted to start a thread to see if
> maybe its an oversight that needs correcting or maybe a buried set of
> flags that needs documenting.
>
> Use case: LazyTreeGrid (what we use) but could be applied to TreeGrid
> or Tree as well we figure (not able to test these at this time) +
> wanting to show proper grid structure to display the filtered results:
>
> Example:
> Toplevel-1
>     Toplevel-1-SecondLevel-1
>             Toplevel-1-secondLevel-1-ThirdLevel-1
>             Toplevel-1-secondLevel-1-ThirdLevel-2
>             Toplevel-1-secondLevel-1-ThirdLevel-3
>
> Now if we say the above text is the name of each item, then filter on
> ThirdLevel-3 it *should* return:
>
> Toplevel-1
>     Toplevel-1-SecondLevel-1
>             Toplevel-1-secondLevel-1-ThirdLevel-3
>
> However, currently the entire childrens array is displayed... a
> possible solution would be to filter with deep=true, however this
> returned a flattened result set from what we saw

what is "the entire childrens" array in your example?

>
> So my questions:
>
> 1) Did we miss something when we went through the options/code that
> does handle this properly?
>
> 2) If #1 is no, should this be a function of the DataStore (returning
> the proper data structure) or should it be on the LazyTreeGrid/Tree to
> understand deep=true and build its structure correctly from there?

are you talking about dojo.store or dojo.data?

>
>
> -Karl Tiedt
> _______________________________________________
> dojo-contributors mailing list
> dojo-contributors at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors



More information about the dojo-contributors mailing list