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

Search as you type error

1 Answer 50 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Burhan Eyimaya
Top achievements
Rank 1
Burhan Eyimaya asked on 02 Feb 2010, 11:22 AM
Hi,

I am trying to implement the "search as you type" in my application.
I did the same thing as in the Telerik sample demo but I couldn't get it worked.

I have written the text changed event of the search text box as below.
 
private void FilterValue_TextChanged(object sender, TextChangedEventArgs e)   
{  
  CustomFilterDescriptor.FilterValue = textBoxFilterValue.Text;  
  textBoxFilterValue.Focus();  
}  
 

An here CustomFilterDescriptor is added to gridview's FilterDescriptors collection.

 

 

 

 

 

CustomFilterDescriptor CustomFilterDescriptor   
{   
  if(m_CustomFilterDescriptor == null)   
  {  
     m_CustomFilterDescriptor = new CustomFilterDescriptor   (patientStudyGridView.Columns.OfType<GridViewDataColumn>());   
     patientStudyGridView.FilterDescriptors.Add(m_CustomFilterDescriptor);  
  }  
  return m_CustomFilterDescriptor;   

 

 CustomFilterDescriptor 

 

is the same class from Telerik demo.

When I write something in the text box no filtering occurs.
Please help.

Thanks,
Burhan Eyimaya

 

 

 

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 02 Feb 2010, 02:11 PM
Hello Burhan Eyimaya,

You must have changed something in order to break it, since our demo is working fine. What did you change?

Can you open a support ticket and attach your sample project. We will take a look at it and see what is wrong with it.

Kind regards,
Ross
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
GridView
Asked by
Burhan Eyimaya
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or