Hi Team, we are using a web dropdown within a Web grid. The auto filtering and enableautocomplete are enabled.It has a typical grid design, where the dropdown provider is in a cell. Once we put cursor on the 1st cell of the dropdown provider,using mouse,the text gets enabled, and the drill down with the items appears.which is as expected.Now when we put the cursor to some other cell, the already existing value in the previous cell (where cursor was before is lost), and we get Cannot read property 'keyCode' of undefined error.
Note- This behaviour occurs only when autocomplete is enabled.
Kindly look into this on priority.
Thanks,
Pushkar
Gentle reminder!!
Hello,
Thank you for the details shared.
I have created a code sample (using version 14.1.20141.2392) based on the details shared and could not reproduce this error. I am attaching it to my response, in order to test it on your side. As the environment as well as the settings used (WDD and WDG properties and behaviors, etc.) in your case could differ, it is best if you could attach an isolated code sample reproducing the issue, or modify my attachment if you prefer.
Additionally, it could be related to a specific version of the product. What is the exact build version you have being using?
I am looking forward more feedback from you!
Hi Ivaylo,
I call the function Dropdown_Closing, present in the dropdown provider, where I perform some validations. The error occurs in the Infragistics script file , in the line number 6349 , code present there is "if (evnt.keyCode == 40 || evnt.keyCode == 38)", here the evnt itself is undefined. Problem is I am unable to over-ride this behaviour, because it happens after my Dropdown_Closing. This behaviour is cross browser.
Due to this the already existing value in the cell (where cursor was before is lost), and we get Cannot read property 'keyCode' of undefined error.
Please help.
I suggest you are implementing a custom function where checking for a particular user keybord interaction. On top of my head, it appears at the time this function is called there is no actual key passed so it is undefined.
Could you please add some more details?For example what is the function executing when this error fires? What is the file this function is located in?What is the function code? Is it custom function as I suggest or not? Is it appearing under a particular browser, or it is cross browser?
If a custom functionality is used, it is possible to check if the key is undefined and if not apply the function. Similar to the example here: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode