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

How to move fields from "All Fields Area" to "Filter Area"

1 Answer 50 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Fabiana
Top achievements
Rank 1
Fabiana asked on 22 Sep 2015, 09:50 AM

Hi Support!

I am evaluating RadPivotGrid, and I have one question about it: I am using RadPivotGrid1_NeedDataSource(), and the code is:

                  System.Data.DataTable mDataTable = ReturnDataTable();
                    (sender as RadPivotGrid).DataSource = mDataTable;

And I would like to move all fields that will be show in "All Fields Area"  to "Filter Area" in server side code. Is it possible? How to do it?

 

Thanks!

 

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 25 Sep 2015, 06:52 AM
Hi,

In order to display a field in the filter fields section one should add it as a PivotGridReportFilterField. That said you can create the grid programmatically as explained here and define the PivotGridReportFilterFieldс. Have in mind that when following this approach you may need to per-request the pivot data source.

Regards,
Angel Petrov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
PivotGrid
Asked by
Fabiana
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or