This question is locked. New answers and comments are not allowed.
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.
An here CustomFilterDescriptor is added to gridview's FilterDescriptors collection.
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