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

How do I change the properties of a Cell Editor Control?

1 Answer 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
D. Omar
Top achievements
Rank 1
D. Omar asked on 06 May 2009, 03:21 PM
The following code from the Examples solutions works great:

ComboBoxEditorSettings

 

comboBoxEditorSettings = new ComboBoxEditorSettings();

 

comboBoxEditorSettings.ItemsSource = GetCountries();

((

GridViewDataColumn) this.radGridViewEditors.Columns[2]).EditorSettings = comboBoxEditorSettings;

 


... But I want to enable Autocomplete on that editor combobox, how can I access the editor's properties to do this?

Thanks in advance,






1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 12 May 2009, 08:57 AM
Hi D. Omar,

Sorry for the late answer, I needed more time to consider different options about this problem.

Indeed it is not so easy and trivial to do this.

One workaround is to use CellEditTemplate property of the GridViewColumn. You can take a look at this online example for a reference.

After some discussions inside the team we end up with some ideas how to improve styling of the editor element (ComboBox, DateTimePicker, etc.). We plan to provide possibility to set your own style of the editor element from GridViewDataColumn.EditorSettings property.

P.S. We are doing our best in order to ship this with the upcoming Friday internal build.

Best wishes,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
D. Omar
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or