Search as you type error

2 posts, 0 answers
  1. Burhan Eyimaya
    Burhan Eyimaya avatar
    6 posts
    Member since:
    Jan 2010

    Posted 02 Feb 2010 Link to this post

    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

     

     

     

  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 02 Feb 2010 Link to this post

    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.
  3. DevCraft banner
Back to Top