Completed
Last Updated: 04 Jun 2021 09:39 by ADMIN
Release R2 2021 SP1 (LIB 2021.2.607)
Edmund
Created on: 29 Mar 2021 13:27
Category: MultiColumnCombo
Type: Bug Report
0
RadMultiColumnCombobox: System.NullReferenceException when press Enter on group header row

To reproduce use the following code snippet and press the Enter key on group header row:

public RadForm1()
{
    InitializeComponent();

    GroupDescriptor descriptor = new GroupDescriptor();
    descriptor.GroupNames.Add("CategoryName", ListSortDirection.Ascending);
    this.radMultiColumnComboBox1.EditorControl.GroupDescriptors.Add(descriptor);
    this.radMultiColumnComboBox1.EditorControl.EnableGrouping = true;
    this.radMultiColumnComboBox1.EditorControl.ShowGroupedColumns = true;
}

1 comment
ADMIN
Nadya | Tech Support Engineer
Posted on: 29 Mar 2021 13:37

Hello,

You can use the following workaround:

public class MyComboBox : RadMultiColumnComboBox
{
    protected override RadMultiColumnComboBoxElement CreateMultiColumnComboBoxElement()
    {
        return new MyComboboxElement();
    }
}

public class MyComboboxElement : RadMultiColumnComboBoxElement
{
    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(RadMultiColumnComboBoxElement);
        }
    }
    protected override void SetCurrentRowOnReturnOrTabKey(KeyEventArgs e)
    {
        //return;
    }
}

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.