Unplanned
Last Updated: 12 Mar 2020 13:51 by ADMIN
Gilles
Created on: 11 Mar 2020 10:55
Category: DropDownList
Type: Bug Report
0
RadDropDownList: AutoCompleteMode.Suggest's popup is closed when using VirtualKeyboard

Hi,

 

When using a RadDropDownList component and the RadVirtualKeyboard component I have a problem. The AutoCompleteMode.Suggest works fine the first time I click on RadVirtualKeyboard but for the other clics the suggested items don't appears on the screen.

 

Regards

   Gilles

3 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 12 Mar 2020 13:51
Hello, Gilles,

You can use a boolean flag to control when the PopupClosing event to be cancelled or not. Please refer to the following code snippet which result is illustrated in the attached gif file: 
        public RadForm1()
        {
            InitializeComponent(); 
            this.radDropDownList1.AutoCompleteMode = AutoCompleteMode.Suggest;

            this.radDropDownList1.DropDownListElement.AutoCompleteSuggest.DropDownList.PopupClosing += radDropDownList1_PopupClosing;
            this.radDropDownList1.DropDownListElement.AutoCompleteSuggest.DropDownList.ListElement.MouseDown += ListElement_MouseDown;
        }

        bool shouldCancel = true;
        

        private void radDropDownList1_PopupClosing(object sender, RadPopupClosingEventArgs args)
        { 
            args.Cancel = shouldCancel;
            shouldCancel = true;

        }

        private void ListElement_MouseDown(object sender, MouseEventArgs e)
        {
            shouldCancel = false;
        }

Note that this is just a sample approach and it may not cover all possible cases. Feel free to modify and extend it in a way which suits your requirements best.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Should you have further questions please let me know.

 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Attached Files:
Gilles
Posted on: 12 Mar 2020 09:47
Thanks for your answer, it's work but the problem now is that the popup is always visible on screen. If I select a item value, the popup don't close ...
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 11 Mar 2020 14:50

Hello, Gilles,

Indeed, the popup with suggestions will be closed after the first click on RadVirtualKeyboard.

I have logged it in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

 

Currently, the possible solution that I can suggest is to cancel closing the suggest's popup:

        public RadForm1()
        {
            InitializeComponent();
            this.radDropDownList1.AutoCompleteMode = AutoCompleteMode.Suggest; 

            this.radDropDownList1.DropDownListElement.AutoCompleteSuggest.DropDownList.PopupClosing+=radDropDownList1_PopupClosing;

        }

        private void radDropDownList1_PopupClosing(object sender, RadPopupClosingEventArgs args)
        {
            args.Cancel = true;
        }

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.