This example demonstrates how to replace the default Filter Popup with a custom one made with the ASPxGridView control. This solution demonstrates only a basic approach, and it is possible to customize it further to achieve a custom result. The whole sample functionality can be divided into three parts:
1. We use the ASPxPivotGrid.FieldValueTemplate property to assign a custom header template. You can use a simpler sample project demonstrating this approach in the Create Header or Field Value Templates and replicate existing look-and-feel example. Note that in this example we replace the default filter button with a custom one created dynamically.
2. To get information about the filter applied to a specific field, we use the PivotGridFieldBase.FilterValues and PivotGridFieldBase.GetUniqueValues properties. To pass filter information from the server to the client, we simply convert filter values to strings. This solution can be not enough in some situations. In this case, it might be necessary to update the code accordingly.
3. To populate ASPxGridView with data at runtime and apply the specified filter to the ASPxPivotGrid control, we use the ASPxClientPivotGrid.PerformCallback and ASPxClientGridView.PerformCallback methods. The client-side row selection functionality is provided by the ASPxGridView's built-in Selection feature.
Example Comments
Added By: Nagamanickam Rajamanickam at: 1/29/2014 1:36:06 PM
Hello Team,
We have implemented a CustomFilterPopup using this sample, but how to set this Custom Filter Popup only for one item and leave the others as default Pivot Grid Filter Popups?
Thanks
Naga