Problem with radtreelistview custom filtering

3 posts, 0 answers
  1. Sharada
    Sharada avatar
    43 posts
    Member since:
    Mar 2009

    Posted 30 Dec 2010 Link to this post

    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. Sharada
    Sharada avatar
    43 posts
    Member since:
    Mar 2009

    Posted 05 Jan 2011 Link to this post

    Can you please provide a solution for the above filter problem ?
  3. UI for WPF is Visual Studio 2017 Ready
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 05 Jan 2011 Link to this post

    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
Back to Top