Query |
Response |
there is some specific combination of steps that makes it fail. I followed your steps exactly and worked ok, but I'm attaching a video running your sample with no modifications and following a different combination of steps and you can see how it fails. |
Sorry for the inconvenience caused.
We are able to reproduce the reported issue “Unchecked filter items are removed from filter popup after deserialize the pivot grid control”. We will provide the patch file for the reported issue on 18th March, 2019 in your version 16.4.0.42.
Feedback link: https://www.syncfusion.com/feedback/5042/filter-items-state-are-not-maintained-properly-after-de-serializing-the-report
We appreciate your patience until then. |
Regarding ItemsSource, I must reassign it because I'm actually changing the source of data on runtime, and I'm getting different errors whether if I assign ItemsSource before or after loading config on the pivot grid. |
We have prepared a sample based on your requirement – “To change the ItemSource value dynamically at runtime”. You should define the ItemSource value before initialize the pivot fields.
If the above solution does not meet your actual requirement, could you please share the detailed description about your requirement so that it could be helpful to provide the solution at the earliest. |
Query |
Response | |
The issue is this: when you have a PivotSchemaDesigner linked to the PivotControl and you change the ItemSource, the PivotSchemaDesigner is ignoring FieldCaptions. So in the Pivot Table Field list you see, incorrectly, the Field Mapping names while in Column and Row Labels you see the correctly the FieldCaptions. |
As per the default behavior, the fields are added into the PivotTableFieldList based on the itemProperties used in the application. You can resolve this issue by invoking the InitializePivotTableList method which is available in PivotSchemaDesigner class and also clear the fields from the PivotFields property.
Please refer the following code sample.
| |
Is there a way to prevent "UnrelatedProperty" from appearing in the field list without using ShowDisplayFieldsOnly ? |
No. We don’t have any option to prevent the property alone while initializing the control.
As per default behavior of ShowDisplayFieldsOnly, it must display the fields which is available in Rows, Columns, Values and Filter section of SchemaDesigner. Rest of the fields are removed from the PivotTableFieldList. Same behavior will be followed if you are removing any field at runtime, the field will be removed from field list automatically.
If you want to prevent "UnrelatedProperty" from appearing in the field list, you can remove the property definition from the BusinessObject class.
|
Recommended approach – exe will perform automatic configuration
Please find the patch setup here:
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment
Please find the patch assemblies alone from:
Please find the Nugets from the below location:
|