Is it possible to set default values for filters within PivotGrid?
For example, within my PivotGrid I have a Column Field 'Year', and I want this to be automatically filtered by the past 2 years on load.
3 Answers, 1 is accepted
0
Viktor Tachev
Telerik team
answered on 31 Mar 2014, 02:21 PM
Hi Kevin,
In order to set filters in RadPivotGrid that are applied initially you could use the PreRender event and define the values that would be used in the filter. You could specify the filter with the
FilterByLabel() method. If you would like you could check out the example of using the method in this article.
RadPivotGrid1.Fields["Total"] as PivotGridAggregateField,
"filter value",
"between filter value");
}
Regards,
Viktor Tachev
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.