Hi
I created this example to show problem that occurs in my real application.
This is my source code:
public
class
MyClass
{
public
string
MyProperty {
get
;
set
; }
}
public
partial
class
Form1 : Form
{
private
List<MyClass> _myList =
new
List<MyClass>();
public
Form1()
{
InitializeComponent();
radGridView1.DataSource = _myList;
radGridView1.Columns[0].Width = 200;
}
private
void
radGridView1_EditorRequired(
object
sender, Telerik.WinControls.UI.EditorRequiredEventArgs e)
{
RadDropDownListEditor editor =
new
RadDropDownListEditor();
RadDropDownListEditorElement editorElement = editor.EditorElement
as
RadDropDownListEditorElement;
editorElement.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown;
editorElement.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
e.Editor = editor;
e.EditorType =
typeof
(RadDropDownListEditor);
}
}
When I want add new row I type something in cell and I press ENTER but new row is not added. Cell is cleared.
If I don`t use custom editor (comment out code in EditorRequired handler) on ENTER pressed new row is added with typed value.
How to solve this issue when I use custom editor?
Regards
RadListBox and RadComboBox controls have been replaced by two brand new controls as of Q2 2010: RadListControl and RadDropDownList. The new controls provide the extensibility options that were currently lacking in the old controls, and offer much better performance, due to the use of virtualization and a new generic data engine, developed for RadGridView.
RadDropDownList replaces RadComboBox and will soon offer extended and new auto complete options.
RadListControl replaces RadListBox and offers full virtualization support. It performs far better than both RadListBox and the standard ListBox control when bound to more than 1000 items. Read more in this blog post: Blazing-fast list control. Meet RadListControl for WinForms.
Both controls are easier to use and customize, and will provide better grounds for developing new features faster.
The old controls will be supported for at least one year after the release of Q2 2010. Users will nevertheless be encouraged to use the new controls since they address the fundamental shortcomings of the previous controls.
Upgrading from the old to the new controls should be easy and painless, unless you have extended the previous controls with custom functionality. If this is the case, please contact Telerik support and we will help you move to the new versions. We will also provide an automatic upgrade tool with Q2 2010 SP1.
Videos and instructions on how to upgrade from the old versions to the new ones will be posted shortly.
To get technical support, either contact Telerik support or post in the DropDownList and ListControl Forum.