I experienced the same problem. With a grouping collection you can get
around it by setting a filter on the collection that is the source for the
groupingcollection and calling refresh() on the groupingcollection every
time it should reflect a change. Refresh updates the view as well.

I did not find a way to do it with XML short of reassigning the
dataProvider.

In both cases you have to track the open items and re-open them after the
refresh or reassignment.

I have no idea if this is the 'right' way to do it, but it works at least
... it would be nice if one could apply a filter at the column level that
would reduce the number of rows shown.

...paul


On 10/3/07, letterpigeon <[EMAIL PROTECTED]> wrote:
>
>   Hi,
>
> With the normal DataGrid object, we can perform filtering by doing
>
> grid.dataProvider = someArrayColection
> grid.dataProvider.filterFunction = myFilterFunction.
>
> However, with the advanceddatagrid, if the do,
> grid.dataProvider = someHierarchialData
>
> afer this statement, the grid.dataProvider variable will still be
> null, because internally in the setter of dataProvider,
> grid.dataProvider is never set of someHierarchialData is of type
> IHierarchialData, and therefore, I can't proceed with specifying the
> filter function.
>
> How is filtering supposed to be done for AdvancedDataGrid?
>
> Just a little more background on what I'm doing. I've successfully
> built a extension to the normal DataGrid so that given the grid an
> array of ColumnConfig object (each contains dataField, headerText, and
> filterType), a data grid will be created with the specified columns,
> and for each column, with its specified column-wide filtering built
> in. And now I'm trying to build a same grid that extends
> AdvancedDataGrid because we need the ability to display hierachical
> data. If anyone has built something similar, please share your
> thoughts. Thanks in advance.
>
> Regards,
> Ban
>
>  
>

Reply via email to