Query |
Response | |
Is there a way to handle the drag & drop behavior when moving around fields between rows/columns/filters? |
You can enable/disable drag and drop feature through the property “allowDragAndDrop”. Please find the following code snippet for your reference.
Code snippet: [React]
Documentation link: https://ej2.syncfusion.com/react/documentation/api/pivotview/groupingBarSettingsModel/#allowdraganddrop
| |
I want to prevent this default behavior of filtering since it's a bit slow, and use my own queries to my server instead.
|
You cannot change the default behavior of filtering. But, you can hide the filter icons in the UI through the property “showFilterIcon” to false.
Code snippet: [React]
Documentation link: https://ej2.syncfusion.com/react/documentation/pivotview/grouping-bar/#showhide-filter-icon
|
<PivotViewComponent id='PivotView' ref={(scope) => { this.pivotObj = scope; }} onFieldDropped= {this.trend.bind(this)}>
</PivotViewComponent>
trend(args) {
console.log(args); // Paste your code here
} |