Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to implement a custom range filter using ASPxTrackBar in ASPxGridView

$
0
0

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.


Viewing all articles
Browse latest Browse all 7205

Trending Articles