static
void grid_EditorRequired(object sender, Telerik.WinControls.UI.EditorRequiredEventArgs e)
{
Telerik.WinControls.UI.
RadComboBoxEditor comboEditor = e.Editor as Telerik.WinControls.UI.RadComboBoxEditor;
if (comboEditor != null)
{
Telerik.WinControls.UI.
RadComboBox comboBoxControl = comboEditor.EditorElement.ElementTree.Control as Telerik.WinControls.UI.RadComboBox;
// Do some work with the combo box control here
}
}
However the e.Editor is always Null (the e.EditorType is typeof(RadComboBoxEditor) as expected).
I see from several postings that I would expect to have an instance of the RadComboBoxEditor in the e.Editor property, and that this event is the correct one to do what I'm trying to do.
In addition, other posts have been shown solutions which show that RadComboBoxEditor class has an Items collection, but in my edition of Rad this property does not exist, and I'm guessing my route through to the combo box items collection is through .EditorElement.ElementTree.Control.
Can you help untangle this for me ?