Completed
Last Updated: 22 Mar 2022 13:50 by ADMIN
Release R2 2022 (LIB 2022.1.322)
Jeroen
Created on: 11 Mar 2022 13:21
Category: MultiColumnCombo
Type: Bug Report
0
RadMultiColumnComboBox: User is not allowed to delete text hitting backspace in .NET6

This issue is reproducible only in .NET 6. It works OK in .NET 4.8.

Use the following code snippet:

        public RadForm1()
        {
            InitializeComponent();

            List<Student> collectionOfStudents = new List<Student>();
            collectionOfStudents.Add(new Student(0, "Peter", "A+"));
            collectionOfStudents.Add(new Student(1, "John", "D-"));
            collectionOfStudents.Add(new Student(2, "Antony", "B+"));
            collectionOfStudents.Add(new Student(3, "David", "A-"));
            collectionOfStudents.Add(new Student(4, "John", "D-"));

            this.radMultiColumnComboBox1.DisplayMember = "Name";
            this.radMultiColumnComboBox1.ValueMember = "Id";
            this.radMultiColumnComboBox1.DataSource = collectionOfStudents;

            this.radMultiColumnComboBox1.AutoCompleteMode = AutoCompleteMode.Append;
        }

        public class Student
        {
            int m_id;
            string m_name;
            string m_grade;
            public Student(int m_id, string m_name, string m_grade)
            {
                this.m_id = m_id;
                this.m_name = m_name;
                this.m_grade = m_grade;
            }
            public int Id
            {
                get
                {
                    return m_id;
                }
                set
                {
                    m_id = value;
                }
            }
            public string Name
            {
                get
                {
                    return m_name;
                }
                set
                {
                    m_name = value;
                }
            }
            public string Grade
            {
                get
                {
                    return m_grade;
                }
                set
                {
                    m_grade = value;
                }
            }
        }

Type "David" in the editor and hit Backspace:

Expected: every Backspace hitting should delete the last character:

Actual: it is not possible to delete the text:

Workaround:

this.radMultiColumnComboBox1.AutoCompleteMode = AutoCompleteMode.Suggest;

0 comments