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

Filtering not working until i click no filter option

1 Answer 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nilanjan
Top achievements
Rank 1
Nilanjan asked on 19 Dec 2008, 02:43 PM
I am facing a strange problem in rad grids. Whenever I type something in filter textbox and filter, it works fine. However if  I type something else after first filter, the same set of data is returned, unless I click no filter.  However i know this is not the case in your demos site.  I do not know if it is my mistake. However if you can advice how to track it down, then that would be very helpful.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 20 Dec 2008, 03:55 PM
Hello Nilanjan,

Indeed this is the expected behavior of the regular grid filtering. You type filter value in the filtering textbox then select a filter function to trigger filtering and RadGrid displays the filtered data. To filter by different filter value you repeat the above steps.

But in case you prefer filtering on [Enter], you could achieve it by:
  • set AutoPostBackOnFilter property of the corresponding column to true (this will trigger postback filter operation for Contains (for string types) and EqualTo (for numeric types) when you type in the filter box and press [Enter] from the keyboard)
  • additionally, you can execute other type of filter action by setting the CurrentFilterFunction property of the corresponding column to the desired filter function

Find more about RadGrid filtering here.

I hope this helps.

All the best,
Iana
the Telerik team

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