This is a migrated thread and some comments may be shown as answers.

[Solved] Filter template e filter icon

1 Answer 192 Views
Grid
This is a migrated thread and some comments may be shown as answers.
GD
Top achievements
Rank 1
GD asked on 23 Nov 2009, 05:03 PM
- Can I insert "Filter Icon" in a FilterTemplate?
- The FilterListOptions property has three possible values:VaryByDataType, VaryByDataTypeAllowCustom,AllowAllFilters
But Can I choose which filters to show or I must show all?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Nov 2009, 06:46 AM
Hi Claudio,

1) It is possible to insert any control in the FilterTemplate. You can place an ImageButton in the filtertemplate and filter the grid with a default filter function using the logic provided in the following help article:
Applying default filter on initial load


Inorder to show the FilterMenu on clicking the image button, you can use a context menu as demonstrated here. Further, you can use its api, to go to the server, and set the filter expression for the grid as per your needs. You could use the menu's itemClick handler to access the selected data and implement the logic.

2) If you want to limit the filter options displayed for a given column on the client or customize the filter options on a per column basis, then refer to the following document which may be useful:
Reducing the filter menu options

Thanks
Princy.
Tags
Grid
Asked by
GD
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or