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

custom filters

2 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ramya Pulipaka
Top achievements
Rank 1
Ramya Pulipaka asked on 15 Aug 2008, 08:30 PM
Hi,

Thank you for you previous response about column types. It worked.

I have another issue. I want to disable the filter and add custom filters. If the user typed a value then I want to automaticatlly check if it has 0's or if he has typed in more than 9 numbers etc.

how can I do this.

Thanks,
Ramya

2 Answers, 1 is accepted

Sort by
0
Ramya Pulipaka
Top achievements
Rank 1
answered on 17 Aug 2008, 07:27 PM
ok I will make my question a little more clear.i dont want the filters but i want "contains" filter option as default. as user types data the grid has to reorder using contains filter option.

Ramya
0
Yavor
Telerik team
answered on 19 Aug 2008, 10:44 AM
Hello Ramya,

If you set the AutoPostBackOnFilter property for a given column to true:

.aspx
<telerik:GridBoundColumn   
DataField="ContactTitle"   
HeaderText="ContactTitle"   
SortExpression="ContactTitle" 
UniqueName="ContactTitle"   
AutoPostBackOnFilter="true"

the control will be filtered with a default "Contains" clause when you type something into the filter box, and it loses focus.

Regards,
Yavor
the Telerik team

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