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

re-order filter combo

3 Answers 13 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anne Lyon
Top achievements
Rank 1
Anne Lyon asked on 16 Oct 2012, 09:21 AM
Hi,

In the column Filter dialog: Is it possible to re-order the list in the "Show rows with value that"-combo-box so that the "Contains" option is listed first? This is the option the users will most often use, and it would be great if this option could always be default instead of the "is equal to". How can I achieve this?

Anne

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 16 Oct 2012, 11:20 AM
Hi Anne,

To change the order of the Filtering operators you could subscribe to the FilterOperatorsLoading event of RadGridView. In the event arguments there is a property called AvailableOperators. You could then order the AvailableOperators collection.  
 
Please let me know how this works for you.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Anne Lyon
Top achievements
Rank 1
answered on 16 Oct 2012, 11:58 AM
Thanks, that works well if I just want to remove operators. But e.AvailableOperators is a RemoveOnly collection. In order to re-order I have to remove an item from the wrong place and insert the item in the right place? But Insert is not allowed.Or is there a smarter method to re-order these items?    :-)

Update: I did find that setting DefaultOperator1 and 2 at least selects my preferred opertator, but still, it would be nice if it actually would be first in the drop-down list and not 5th...
0
Accepted
Dimitrina
Telerik team
answered on 16 Oct 2012, 12:34 PM
Hello,

 Indeed, you are right, this would not be possible. I apologize for misleading you. 

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Anne Lyon
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Anne Lyon
Top achievements
Rank 1
Share this question
or