Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtGridCellHeaderFilter in CExtGridWnd - Value Filters only listing visible row values Collapse All
Subject Author Date
Alastair Watts Sep 29, 2010 - 4:31 AM

CExtGridCellHeaderFilter works great in CExtTreeGridWnd, but in CExtGridWnd the Value Filters list only offers the values from visible rows.


Any ideas?


 

Technical Support Oct 1, 2010 - 3:00 AM

If the m_bDynamicValueFilters flag is set to true, the CExtGridWnd::OnGridFilterCalcPlainUniqueValuesForColumn() / CExtGridWnd::OnGridFilterCalcPlainUniqueValuesForRow() methods are used to compute all the filter values dynamically. You can override these methods if you application have some cache of all the values and it allows you to avoid entire grid column/row scanning and improve performance. By default, these methods invoke the CExtGridCellHeaderFilter::stat_CalcPlainUniqueValuesForColumn() / CExtGridCellHeaderFilter::stat_CalcPlainUniqueValuesForRow() methods which scan entire grid column/row and generate array of unique string objects. We cannot confirm these methods perform only visible range scanning. They scan entire range of columns/rows.

Alastair Watts Sep 30, 2010 - 3:19 AM

So there’s a bug when m_bDynamicValueFilters = true in CExtGridWnd?

Technical Support Sep 30, 2010 - 12:36 AM

We checked this issue in the FilteredGrids sample application. The value filters show values for all the rows in case of static filters. Please build static value lists.