How to temporary disable arrowDown key events in multiselect?

I have MultiselectDropDown inside grid's rowTemplate. I am pressing downArrow key to change row when MultiselectDropDown is focused.

Expected result:
- Row will be changed

Actual result:
- multiselect dropdown opening -> multiselect dropdown closing -> row changed


Can I temporary disable opening multiselect dropdown by downArrow key?




3 Replies 1 reply marked as answer

SN Sevvandhi Nagulan Syncfusion Team November 3, 2020 01:23 PM UTC

Hi Andrew, 


Greetings from Syncfusion support. 


We checked the reported requirement. You can disable the arrow down functionalities by setting the openOnClick property to false. Refer to the below code, 


 
<ejs-multiselect 
          id="localData" 
          :dataSource="countries" 
          :fields="localFields" 
          :placeholder="localWaterMark" 
          :openOnClick="open" 
        ></ejs-multiselect> 
  data: function () { 
    return { 
      localFields: { text: "Name", value: "Code" }, 
      localWaterMark: "Select countries", 
      countries: [ 
        { Name: "Australia", Code: "AU" }, 
        { Name: "Bermuda", Code: "BM" }, 
        { Name: "Canada", Code: "CA" }, 
        { Name: "Cameroon", Code: "CM" }, 
        { Name: "Denmark", Code: "DK" }, 
      ], 
      open: false, 
    }; 



Please find the sample below, 






Please check the above sample and get back to us if you need further assistance. 


Regards, 
Sevvandhi N 


Marked as answer

AM Andrew Mandruk February 3, 2021 05:14 PM UTC

Thank you for solution. Now everything work 


PM Ponmani Murugaiyan Syncfusion Team February 4, 2021 05:32 AM UTC

Hi Andrew, 

We are glad to hear that the issue is resolved. Please get back us if you need further assistance.  

Regards, 
Ponmani M 


Loader.
Up arrow icon