To create a custom range filter with the ASPxTrackBar, follow these steps:
1) Put ASPxTrackBar inside the GridViewColumn.FilterTemplate.
2) Create a GridViewCommandColumn with two custom buttons to apply and clear filter conditions.
3) Handle the ASPxClientGridView.CustomButtonClick event. In the event handler, set the filter expression.
4) Handle the ASPxGridView.CustomButtonInitialize event to show and hide the ClearFilter button.
5) Use the ASPxTrackBar.JSProperties property to get the Min and Max values on the client side.
6) Set the start and end positions of the track bar using the ASPxClientTrackBar.SetPositionStart and ASPxClientTrackBar.SetPositionEnd methods when the ClearFilter button is clicked.
↧
How to implement a custom range filter using ASPxTrackBar in ASPxGridView
↧