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 » 2.92 - filter grids sample - vertical & horizontal grids - no values in 'Value Filters' Collapse All
Subject Author Date
Alastair Watts Jun 15, 2011 - 2:22 AM

.

Technical Support Jul 13, 2011 - 9:12 AM

We reproduced this issue. To fix it, please update the source code for the following method:

bool CExtGridCellHeaderFilter::OnPopupListBoxInitContent(
    CExtPopupInplaceListBox & wndListBox,
    CExtGridCell::TrackCellStateInfo_t & _tcsi
    )
{
    __EXT_DEBUG_GRID_ASSERT_VALID( this );
    if( _tcsi.m_wndGrid.OnGridCellPopupListBoxInitContent( wndListBox, _tcsi ) )
        return true;
CExtSafeString strShowAll;
    if( ! g_ResourceManager->LoadString( strShowAll, ID_EXT_HEADER_FILTER_MENU_VALUE_SHOW_ALL ) )
        strShowAll = _T("(Show All)");
    wndListBox.AddString( strShowAll );
    wndListBox.SetItemData( 0, 1 );
CExtArray < CExtSafeString > _arrUniqueStringValuesBuffer( true );
CExtArray < CExtSafeString > & arrUniqueStringValues = m_bDynamicValueFilters ? _arrUniqueStringValuesBuffer : m_arrStaticStringValues;
    __EXT_DEBUG_GRID_ASSERT(
            ( _tcsi.m_nColType == 0 || _tcsi.m_nRowType == 0 )
        &&    (! ( _tcsi.m_nColType == 0 && _tcsi.m_nRowType == 0 ) )
        );
    if( m_bDynamicValueFilters || arrUniqueStringValues.GetSize() == 0 )
    {
        bool bSavedDynamicValueFilters = m_bDynamicValueFilters;
        m_bDynamicValueFilters = true;
        if( _tcsi.m_nColType == 0 )
        {
            if( ! _tcsi.m_wndGrid.OnGridFilterCalcPlainUniqueValuesForColumn( arrUniqueStringValues, _tcsi.m_nColNo ) )
                return false;
        }
        else
        {
            if( ! _tcsi.m_wndGrid.OnGridFilterCalcPlainUniqueValuesForRow( arrUniqueStringValues, _tcsi.m_nRowNo ) )
                return false;
        }
        m_bDynamicValueFilters = bSavedDynamicValueFilters;
    } // if( m_bDynamicValueFilters || arrUniqueStringValues.GetSize() == 0 )
    if( m_bValueFilterShowAllState )
    {
        m_arrUniqueStringValues.RemoveAll();
        m_arrUniqueStringValues += arrUniqueStringValues;
    }
LONG nRowCount = LONG( arrUniqueStringValues.GetSize() );
    for( LONG nRowNo = 0L; nRowNo < nRowCount; nRowNo++ )
    {
        wndListBox.AddString( arrUniqueStringValues[nRowNo] );
        bool bCheck = false;
        if( m_bValueFilterShowAllState )
            bCheck = true;
        else if( m_arrUniqueStringValues.BinarySearch( arrUniqueStringValues[nRowNo] ) >= 0 )
            bCheck = true;
        wndListBox.SetItemData( nRowNo + 1, bCheck ? 1 : 0 );
    }
CExtSafeString str;
    TextGet( str );
    wndListBox.SelectString( -1, str );

INT nCheckedCount = (INT)m_arrUniqueStringValues.GetSize();
    if( nCheckedCount == nRowCount )
        wndListBox.SetItemData( 0, 1 ); // set "show all" item
    else
        wndListBox.SetItemData( 0, 0 ); // clear "show all" item

    return true;
}

Alastair Watts Jul 10, 2011 - 2:58 AM

I have not re-compiled or modified your sample ... it is as downloaded. 

Alastair Watts Jun 15, 2011 - 2:54 PM

Tried it ... no change.


Running 32 bit apps on Windows 7 64 bit - could this be it?


 

Technical Support Jun 16, 2011 - 10:50 AM

No. We are using x64 computers. We suspect you are using multiple Prof-UIS versions, modified compiler settings or a modified sample app. You can check our compiled samples.

http://www.prof-uis.com/prof-uis/samples.aspx
http://www.prof-uis.com/download/samples/win32/FilteredGrids.zip
http://www.prof-uis.com/download/samples/x64/FilteredGrids.zip

Technical Support Jun 15, 2011 - 11:26 AM

We cannot confirm this. Please try removing the following registry keys:

HKEY_CURRENT_USER\Software\Foss\FilteredGrids\ProfUIS\Profiles\FilteredGrids\GridFilter\Horizontal Filtered Grid
HKEY_CURRENT_USER\Software\Foss\FilteredGrids\ProfUIS\Profiles\FilteredGrids\GridFilter\Vertical Filtered Grid