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

RadGrid avoid search on leaving filter field

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Finn Møller Hansen
Top achievements
Rank 1
Finn Møller Hansen asked on 05 May 2011, 02:50 PM
Hey

We are using RadGrid for example containg  persons data, firstname, lastname, social securitynr. etc. all in a specific column.

The search is a backend search where we present a limited number of "hits"

So if we do this for the moment a search on "John Doe", it will be exucution on search on "John" say 3000 records followed by a search
on "John" + "Doe" say 50 hits.

Is it possible to avoid (disable) the implicit search which occurs every time we are tabbing away (leaving) from a filter field ?

We would like to implement a search triggered ex. enter.

Regards

Finn Møller Hansen



1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 06 May 2011, 01:48 PM
Hi Finn,

When AutoPostBack is set to true for a column, filtering is performed either when you press [Enter] in the filter textbox or you press [Tab] to leave the filter textbox.
To overcome that issue you can try handling the filtering textboxes onkeydown client-side event and detect the [Tab] click. Then based on that cancel the filter command in the client-side OnCommand event.

Another option is to define your own FilterTemplate for each column and implement filtering as desired.

Regards,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Finn Møller Hansen
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or