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

search as you type

7 Answers 166 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Avi Avni
Top achievements
Rank 1
Avi Avni asked on 02 Nov 2010, 08:59 AM

Hello

Is there a way to search as you type in grid without using filter descriptors?

Best Regards

Ehud

 

7 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 02 Nov 2010, 09:04 AM
Hello Ehud,

 Can you post more info about your scenario and why you do not want to use filter descriptors? 

Sincerely yours,
Vlad
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
0
Avi Avni
Top achievements
Rank 1
answered on 02 Nov 2010, 09:56 AM

Hi Vlad

I need to convert the cells grid data to string and find if the cell contains the search value

And display only these rows.

Best regards

ehud

0
Vlad
Telerik team
answered on 02 Nov 2010, 10:06 AM
Hello Ehud,

 Please check this blog post - I believe that the approach is very close to your scenario. 

All the best,
Vlad
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
0
Avi Avni
Top achievements
Rank 1
answered on 02 Nov 2010, 02:10 PM

Hi Vlad

The problem in this demo that I need to know the Type and the properties

And I don’t know this.

Is there another solution?

How can I run over all the cells and get there Values?

Best Regards

 Ehud

0
Vlad
Telerik team
answered on 02 Nov 2010, 02:21 PM
Hello,

 You cannot get all cells since the grid is UI virtual component - UI elements will be created only for currently visible data. 

Kind regards,
Vlad
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
0
Avi Avni
Top achievements
Rank 1
answered on 02 Nov 2010, 03:28 PM

Hi Vlad

I noticed that I can get all the values per column

var columnValues = column.DataControl.GetDistinctValues(column, true);

Maybe I can filter by these values?

Is there sample for this?

Best regards

Ehud

0
Vlad
Telerik team
answered on 08 Nov 2010, 08:42 AM
Hi Ehud,

 You already have access to all values using Items collection. Just cast it to your item type and access desired property. 

All the best,
Vlad
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
GridView
Asked by
Avi Avni
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Avi Avni
Top achievements
Rank 1
Share this question
or