Skip to content

Infragistics Community Forum / Web / Ultimate UI for ASP.NET Web Forms / Autocomplete- Cannot read property 'keyCode' of undefined error!!

Autocomplete- Cannot read property 'keyCode' of undefined error!!

New Discussion
Pushkar Priya
Pushkar Priya asked on May 12, 2015 8:59 AM

  

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

Sign In to post a reply

Replies

  • 0
    Pushkar Priya
    Pushkar Priya answered on May 8, 2015 7:17 PM

    Gentle reminder!!

    Thanks,

    Pushkar

    • 0
      Pushkar Priya
      Pushkar Priya answered on May 10, 2015 7:42 AM

      Gentle reminder!!

      Thanks,

      Pushkar

      • 0
        Ivaylo Ganchev
        Ivaylo Ganchev answered on May 11, 2015 10:06 AM

        Hello,  

        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

      • 0
        Pushkar Priya
        Pushkar Priya answered on May 11, 2015 11:07 AM

         

        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.


        Thanks,

        Pushkar

      • 0
        Ivaylo Ganchev
        Ivaylo Ganchev answered on May 12, 2015 8:59 AM

        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!

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Pushkar Priya
Favorites
0
Replies
5
Created On
May 12, 2015
Last Post
10 years, 9 months ago

Suggested Discussions

Created by

Created on

May 12, 2015 8:59 AM

Last activity on

Feb 16, 2026 9:53 PM