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

how do fix/make a custom filter

2 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
reynoldo
Top achievements
Rank 1
reynoldo asked on 19 Sep 2008, 07:11 PM
how do you make a custom filter that uses a textbox, button and a radgrid work together. here is the scenario: the user types in the textbox what he is searching for  then clicks the button which searches the radgrid's hidden column (hidden colums hold all the other columns' data in one column.)

my SQL Statement is : "SELECT accountId, name, .... , CONVERT (varchar(1024), accountId) + ', ' + name AS Expr1 FROM Account WHERE Expr1 IN ("+ RadTextBox1.Text+")";




2 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 23 Sep 2008, 08:47 AM
Hi reynoldo,

You can take this online demo of RadGrid as a starting point for your implementation:

http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Programming/WebMailGrid/DefaultCS.aspx

When you type some text in the textbox which is part of the grid command item and press [Enter] from the keyboard or the button beside the textbox, the grid will be filtered based on the input criteria. Feel free to alter/extend the solution for your particular configuration.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
reynoldo
Top achievements
Rank 1
answered on 23 Sep 2008, 08:55 PM
thanks much.
Tags
Grid
Asked by
reynoldo
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
reynoldo
Top achievements
Rank 1
Share this question
or