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

Filtering row

1 Answer 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 31 May 2012, 07:18 PM
I have a gridview with filter enabled. Some columns are Text and some columns are combobox based. If I click into a filtering cell for a column that is combobox based then I get an empty combobox for the filter. I dont want a combobox to show up. I just want to be able to enter text into a textbox instead. How can I do this?

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 05 Jun 2012, 02:00 PM
Hi David,

Thank you for the question.

You can replace the default editor with a textbox one by handling the EditorRequired event. Further, you need to use custom filtering. Please note that the approach that you want to achieve may lead to some performance issues, because as you can see in the CustomeFiltering event handler of the attached project, you need to get the actual text for each cell based on its (id) value, which for a big number of rows may be a long process.

I hope this helps.

All the best,
Nikolay
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or