This is a migrated thread and some comments may be shown as answers.

Problem with radtreelistview custom filtering

2 Answers 211 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Sharada
Top achievements
Rank 1
Sharada asked on 30 Dec 2010, 03:10 PM

Hi,
I am using custom context menu to apply flter on hierarchical radtreelistview.
I am binding the radtreelistview to an ObservableCollection<>.
In order to apply filter, I am using the below code

 

private

 

 

void RadMenuItem_Click(object sender, Telerik.Windows.RadRoutedEventArgs e)
{

    if ((sender as RadMenuItem).Header.Equals("Filter By Selection"))
        {
 
            FilterDescriptor descriptor = new FilterDescriptor();
            descriptor.Member = strClickedColumn;
            
descriptor.Operator = FilterOperator.IsEqualTo;
            descriptor.Value = strClickedColumnData;
            this.RadTreeListView1.FilterDescriptors.Add(descriptor);
        }
}

But i am not getting the desired results.
Instead,the radtreelistview displays 0 items.
Can you please share a sample project which provides a working solution for custom filter?

 

2 Answers, 1 is accepted

Sort by
0
Sharada
Top achievements
Rank 1
answered on 05 Jan 2011, 11:22 AM
Can you please provide a solution for the above filter problem ?
0
Maya
Telerik team
answered on 05 Jan 2011, 02:10 PM
Hello Sharada,

I have tried to reproduce the issue you specified, but I was not able to. I am sending you the sample project I used for testing it. Please take a look at it and let me know in case of any discrepancies according to your requirements. Feel free to change the application in the way you want and send it back if necessary.
 

All the best,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
TreeListView
Asked by
Sharada
Top achievements
Rank 1
Answers by
Sharada
Top achievements
Rank 1
Maya
Telerik team
Share this question
or