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

search gridview using an outer search textbox

2 Answers 181 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jacob
Top achievements
Rank 1
Jacob asked on 18 May 2016, 07:23 AM

    Hello Telerik,

 

One thing I need to point is I use LinqToSQL, composing a IEnumerable<Something> placed inside a VirtualQueryableCollectionView and finally bound to the grid: ItemsSource="{Binding VirtualCollectionOfSomething}"

I am looking for a way to search in my gridview data using a TextBox outside of the grid, without having to go to the database a second time.

Is there a way I can trigger the built-in gridview filter event using the textbox input as a filter parameter to a specific column?

 

thank you!

2 Answers, 1 is accepted

Sort by
0
Jacob
Top achievements
Rank 1
answered on 20 May 2016, 08:02 AM

please let me know asap

Appreciated

0
Stefan
Telerik team
answered on 23 May 2016, 06:12 AM
Hello Jacob,

Can you please take a look at the Programmatic Filtering topic, as the built-in mechanism for filtering RadGridView is demonstrated in it. Basically, you can build the required IFilterDescriptor based on the Text value of the TextBox and add it to the FilterDescriptors collection of the control.

Hope this helps.

All the best,
Stefan X1
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Jacob
Top achievements
Rank 1
Answers by
Jacob
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or