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

How you can add a filter to be inherited by all grids on a page

1 Answer 26 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gorka S.
Top achievements
Rank 1
Gorka S. asked on 16 Sep 2019, 07:28 AM

<telerik:RadGridView.FilterDescriptors>   

     <telerik:CompositeFilterDescriptor LogicalOperator="Or">       

          <telerik:CompositeFilterDescriptor.FilterDescriptors>             

               <telerik:FilterDescriptor Member="Hardcoded" Operator="IsEqualTo" Value="false"/>        

          </telerik:CompositeFilterDescriptor.FilterDescriptors>   

     </telerik:CompositeFilterDescriptor>

</telerik:RadGridView.FilterDescriptors>

1 Answer, 1 is accepted

Sort by
0
Dimitar Dinev
Telerik team
answered on 18 Sep 2019, 01:17 PM

Hi Gorka,

Thank you for the code snippet.

You can achieve that by defining the FilterDescriptior on application level and applying it on all RadGridViews using the ChildrenOfType<T> method.

Attached, you can find a sample project demonstrating this approach. Please, review it and let me know if it delivered the desired result.

Regards,
Dimitar Dinev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Gorka S.
Top achievements
Rank 1
Answers by
Dimitar Dinev
Telerik team
Share this question
or