I have a requirement to provide a drop down menu which contains distinct values for that particular column.
Is there a cell template I can get access to to override the functionality in the filter row?
Regards,
Aaron
3 Answers, 1 is accepted
0
Nikolay
Telerik team
answered on 11 Dec 2009, 09:54 AM
Hi Aaron Cross,
You can make a stored procedure (or an in-code implementation) which prepares a datasource of distinct values and then assign this DataSource to the GridViewComboBoxColumn. Both the filter combo and the combo editor of the data cells will show a dropdown list of distinct values.
If you have additional questions, feel free to contact me.
In the standard telerik data grid you can enable a filter row, which allows you to type a filter in the column. I want to replace the free text filter cell with a drop down list.
Is it possible to get access to the filter row in code so i can change it's behaviour?
They helped me to understand your requirement. You can replace the default filter editor by handling the EditorRequired event as it is demonstrated in this help article. Additionally, you should add the items of interest in the CellEditorInitialized event handler. I am attaching a sample project which covers your scenario.
I hope this helps. If you have additional questions, feel free to contact me.