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

RadGrid exporting when pressing enter in RadFilter

2 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shawn Clabough
Top achievements
Rank 1
Shawn Clabough asked on 26 Aug 2011, 07:23 PM
I have a RadGrid bound to an EntityDataSource on a page that I also have a RadFilter.  If I press enter when focus is in one of the RadFilter input fields, it causes the grid to trigger an export in whichever format is first in the CommandItemSettings.  I've tried disabling enter with this method - http://www.telerik.com/help/aspnet-ajax/grid-cancel-enter-arrow-keypress.html on the RadGrid and it didn't help.  The RadFilter doesn't have the same events, so I couldn't add it there.  It also makes no difference if I position the CommandItem at the top or bottom.  This is with the RadFilter positioned below the RadGrid.

2 Answers, 1 is accepted

Sort by
0
Shawn Clabough
Top achievements
Rank 1
answered on 26 Aug 2011, 10:16 PM
This isn't happening anymore.  I did not have the RadAjaxManager added to have the RadGrid and RadFilter connected.
0
Nikita Gourme
Top achievements
Rank 1
answered on 29 Aug 2011, 09:33 AM
You should probably cancel the event bubbling (when pressing enter) for the filter editors, not the grid itself. The code from this example which does the same action for the filter textbox might come up helpful, I used it in one of my implementations some time ago. For you case you may attach the Enter key press for the RadFilter inputs on the page globally, using jQuery selector for instance.

Hope my pointers are useful.
Tags
Grid
Asked by
Shawn Clabough
Top achievements
Rank 1
Answers by
Shawn Clabough
Top achievements
Rank 1
Nikita Gourme
Top achievements
Rank 1
Share this question
or