Hello,
I'm trying to set up a custom filter for a ListView set in Icon Mode.
Following along with the example provided here: https://docs.telerik.com/devtools/winforms/controls/listview/features/filtering
I've created the following function (no actual filtering functionality has been added yet):
//Apply the filters to the RadListView
bool BrightLife::FilterDatabase(ListViewDataItem^ item)
{
//Filter by Tree View
//Filter by Search Bar
//Filter by Color
//Filter by Style
return false;
}
Then, in the constructor of my form, I have the following:
this->LV_Assets->EnableFiltering = true;
this->LV_Assets->ListViewElement->DataView->Filter = FilterDatabase; //<- Problem here
The line which assigns the filter to the RadListView is returning an error in Visual Studio
function "Telerik::WinControls::Data::RadCollectionView<TDataItem>::Filter::set [with TDataItem=Telerik::WinControls::UI::ListViewDataItem ^]" cannot be called with the given argument
I'm not entirely sure what the problem is here and would appreciate any insight to help me get this working. Thanks!