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

Sending only one filter request for all column's filter

3 Answers 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 30 Jan 2009, 01:45 AM
hi,

i was looking at the filter capability of RadGrid filter, but all demos are showing the filters which sends filter request for each column.  we have a requirement of sending the all column's filter criteria in one request. i saw the sample application "Single filter button for all columns in RadGrid"  from code library, but i notice that filter menu options are not visible, so user can not select the filter criteria. is it possible to have those filter options along with the common button or link apply?

Thanks

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 02 Feb 2009, 03:37 PM
Hello Mark,

One possible option in this case would be to use a filter template, and not trigger an actual sorting unless some custom event is triggered. You can use the RadGrid1.MasterTableView.FilterExpression, to apply a complete filter expression for the control.
I hope this suggestion helps.

Best wishes,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mark
Top achievements
Rank 1
answered on 04 Feb 2009, 10:54 PM
hi,

As per your suggestion i used the filtertemplate, in that filter template i put the textbox (for getting search text), hidden control (will store the search option), and image of filter. i will also put one common button/icon(on header) which will send filter request for all columns by combining each filter expression.

here are my question

(1) how to show the filter option list(menu) on click of the image?
(2) how to cancel the filter request once user selects the filter option?
(3) how to capture the selected filter option value?

Thanks
0
Yavor
Telerik team
answered on 09 Feb 2009, 11:58 AM
Hi Mark,

You can use a standard or a context menu and show it as demonstrated here. Further, you can use its api, to go to the server, and set the filter expression for the control as per your needs. One suitable option is to use the menu's itemClick handler to access the selected data and implement the logic.

All the best,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Mark
Top achievements
Rank 1
Share this question
or