This is a migrated thread and some comments may be shown as answers.

Entering text is throwing a java script error "Cannot read property 'left' of undefined"

3 Answers 108 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
satya
Top achievements
Rank 1
satya asked on 10 Nov 2017, 05:33 PM

I added a autocomplete control on a page. when I open the page as a popup the control works fine but when I open the page inside a master it is causing a javascript issue. When I debugged I found out that the control offset parent property is returning null. I am attaching the error. If someone can help that would be great.

Uncaught TypeError: Cannot read property 'left' of undefined
    at c.DropDown._getDropDownHorizontalOffset ()
    at c.DropDown.position ()
    at c.DropDown._onDropDownReflowed ()
    at b.DropDown.trigger ()
    at b.DropDown.reflow ()

 

   

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 15 Nov 2017, 11:41 AM

Hello Satya,

Can you share a code example or project that would help me reproduce the problem locally? 

Regards,
Ianko
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
satya
Top achievements
Rank 1
answered on 16 Nov 2017, 06:46 PM
Hi, I don't know if I can share the project. We are having 2 master pages one is default and other is for the popup. The control is working fine when we use the master page for popup but when we use the default master page it is causing this issue.
0
Ianko
Telerik team
answered on 17 Nov 2017, 09:47 AM

Hello Satya,

You can try to isolate the case in a new project and see if it is reproducible there. If the same happens, attach that project so that we can take a look. 

Regards,
Ianko
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
AutoComplete
Asked by
satya
Top achievements
Rank 1
Answers by
Ianko
Telerik team
satya
Top achievements
Rank 1
Share this question
or