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

[Solved] Client Filter event on keyboard "Enter" key

2 Answers 214 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Oleg Medyanik
Top achievements
Rank 1
Oleg Medyanik asked on 03 Nov 2009, 12:42 PM
Hi Guys,

Seems "Filter" event is fired only when you filter using menu and mouse.
When you press enter in filter textboxes - seems nothing happens.

I need to collapse all my nested items before filtering my client-side bound grid.
Can you please advise the best way how to achieve my goal ?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Nov 2009, 01:09 PM
Hello Oleg,

Inorder to enable filtering on pressing the Enter key, you would have to enable AutoPostBackOnFilter property for the the columns in your grid to true.
AutoPostBackOnFilter

Thanks
Princy.
0
Oleg Medyanik
Top achievements
Rank 1
answered on 03 Nov 2009, 02:55 PM
Hi Princy,

Autopostback is enabled, and filters work,
but i just want to capture this event in OnCommand handler as i do for Sort, Page.
But event "Filter" is fired only when filter is applied from menu item like Equal, Greater than etc..
For simple string filters it is not fired for me ((

Thank You.
Tags
Grid
Asked by
Oleg Medyanik
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Oleg Medyanik
Top achievements
Rank 1
Share this question
or