Custom Filter over All Columns

6 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 11 May 2015 Link to this post

    Hi,

     

    using GridViewControl with about 7 Columns. I like to add a custom filter over all columns by using a Textbox above the GridView.
    How can i do this, is there an exmaple somewhere?

     

    Thanks a lot

    best regards

    Rene

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 11 May 2015 Link to this post

    Hi Rene,

    You can check the Search As You Type WPF Demo as a reference on how to filter from a TextBox outside RadGridView. 

    Regards,
    Dimitrina
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 11 May 2015 in reply to Dimitrina Link to this post

    Hi Dimitrina,

     

    i'm sorry but i can't start the exe behind your Link, which demo is this?

     

    Thanks

    best regards

    Rene

  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 11 May 2015 Link to this post

    Hello Rene,

    You can find the online demoYou can also check our online documentation where the filtering is explained in details.

    Regards,
    Dimitrina
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  6. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 11 May 2015 in reply to ITA Link to this post

    Hi Dimitrina,

    sorry works fine. But one Problem. I have a "telerik:GridViewImageColumn" in man GridView and i get an error in
    "CustomFilterDescription" Klass.

    public CustomFilterDescriptor(IEnumerable<Telerik.Windows.Controls.GridViewColumn> columns)
     {
               this.compositeFilterDesriptor = new CompositeFilterDescriptor();
               this.compositeFilterDesriptor.LogicalOperator = FilterCompositionLogicalOperator.Or;
     
               // ERROR !!!!!!!
               foreach (GridViewDataColumn column in columns)
               {
                   this.compositeFilterDesriptor.FilterDescriptors.Add(this.CreateFilterForColumn(column));
               }
       }

     

    Thanks

    Regards

    Rene

  7. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 11 May 2015 in reply to ITA Link to this post

    Hi,

    one more Problem. If i change the ItemsSoruce the Filter will not work any more, i have to start
    the application new.

    Hwo do i add the Filter by code?

     

    Thanks

    regards

    Rene

Back to Top
UI for WPF is Visual Studio 2017 Ready