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

Filter in grid not working when filter menu appears on pressing enter key.

3 Answers 433 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nilanjan
Top achievements
Rank 1
Nilanjan asked on 17 Apr 2009, 01:42 PM
I have a page with rad grid in it.  Filtering in grid is enabled and works fine when the filter the filter menu appears on clicking the funnel icon. However if we write something in the filter text boxes and press enter, the filter menu appears. Now if we click one of the choice in the menu say 'Equal To', the filtering of the column does not happen, the page posts back and full unfiltered data is presented.

Ideally filtering should take place on the grid column.  Pls suggest how to fix this.

3 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 21 Apr 2009, 02:22 PM
Hello Nilanjan,

I am not sure if I understand your scenario correctly. Do you have AutoPostBackOnFilter enabled for the problematic column? Can you reproduce the issue on any of our online examples? Any further details you can provide are welcome.

All the best,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Nilanjan
Top achievements
Rank 1
answered on 22 Apr 2009, 05:22 AM
1.  I have GridTemplateColumns in grid and i have not added the attribute "AutoPostBackOnFilter" in the column definition. Under such a situation if I type some text and place mouse pointer in the filter text box and press enter key, the filter menu is coming. Now if click any of the options in the filter menu, the page posts back but no filtering is done.

2. However if I add the attribute "AutoPostBackOnFilter=true" in the column definition, then on pressing enter key with mouse pointer in the filter text box posts back the page and filter menu does not appear.

If I do not add the attribute "AutoPostBackOnFilter" in the column definition, is it still possible to carry out filtering in the following way:-
Enter some text in filter text box column. The press enter key. The filter menu should appear. Now click with mouse on any of the option in the filter menu, say "Equal To".

If add the attribute "AutoPostBackOnFilter=true" in the column definition, are there any known issues with basic grid operations like filtering, sorting, pagination, etc. that I may not be aware of ?

If this information is not adequate to reproduce the problem, please give details of how I can reproduce the problem on your environment.
0
Pavel
Telerik team
answered on 24 Apr 2009, 08:39 AM
Hi Nilanjan,

By default, if you press 'Enter' when the filter textbox has focus and AutoPostBackOnFilter="false" for that column, the filter menu does not show. This is simply not supported out-of-the-box. Do you have any code to handle this functionality and could you paste it here so we can get a better idea of your scenario?

As for the AutoPostBackOnFilter property, it allows the filtering to be executed after the value of the input is changed and it loses focus or the 'Enter' key is pressed. You can read more details about the property of the columns here.

Kind regards,
Pavel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Nilanjan
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Nilanjan
Top achievements
Rank 1
Share this question
or