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

[Solved] filtering textbox

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ryan
Top achievements
Rank 1
Ryan asked on 18 Mar 2010, 03:04 AM
I've been playing with the filtering built into the grid and it works really well.

What I would like to do is have a seperate textbox above my grid where users can enter search text and then click search and I  can filter the grid contents without using the builtin column filtering controls. 

At the moment I have it working as follows (using ajax databinding, NOT using column filtering)

grid.rebind ({ searchText : $("#SearchBox").val() }) 

This means i provide the filtering myself server side as part of the data access.
I would like to have the filtering handled automatically by the GridAction.

Is it possible to use the client API to enter filtering details ie. set the filterBy ?
Does column filtering have to be enabled to enter filter details clientside ?

thanks

ryan




1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 18 Mar 2010, 09:49 AM
Hi Ryan,

Since you want to use the client-side filtering API, you should enable the grid filtering. I take it that you want to hide the actual filtering UI, so that you can use your own - that is easily achieved through CSS with the following rule:

div.t-grid-filter { display: none; }

Then, you can access the client-side methods and the filtering will be handled automatically on the server.

Regards,
Alex Gyoshev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Ryan
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or