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

[Solved] handle Enter key event in grid

1 Answer 146 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mojtaba
Top achievements
Rank 1
Mojtaba asked on 07 Oct 2009, 10:49 AM
I have a column in my grid that every cell contains a textbox.
I add an event for these textboxes that every time I press Enter key, then next text box focused (jQuery). I set a break point  in my script and everything was OK. But when I press enter key filtering button is pressed. How can I turn it off?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 Oct 2009, 11:54 AM
Hello Mojtaba,

On hitting the Enter key, grid filtering would be triggered only if the AutoPostBackOnFilter property of any column is set to true. Thus inorder to avoid filtering on EnterKey press, make sure that this property is set to false for the columns in the grid.

Thanks
Princy.
Tags
Grid
Asked by
Mojtaba
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or