jQWidgets Forums

jQuery UI Widgets Forums Grid Cannot read property 'filtertype' of undefined

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  mevolent 6 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • mevolent
    Participant

    Have you seen this error:

    jquery.js:3827 Uncaught TypeError: Cannot read property 'filtertype' of undefined
        at c.<computed>._initfilterpanel (jqxgrid.filter.js:8)
        at c.<computed>._initmenu (jqxgrid.js:8)
        at c.<computed>.createInstance (jqxgrid.js:8)
        at Object.b.jqx.applyWidget (jqxcore.js:15)
        at HTMLDivElement.<anonymous> (jqxcore.js:15)
        at Function.each (jquery.js:354)
        at jQuery.fn.init.each (jquery.js:189)
        at jQuery.fn.init.b.fn.<computed> [as jqxGrid] (jqxcore.js:15)
        at Object.build (jqx-grid-utils.js:297)
        at HTMLDocument.<anonymous> (index:230)
    

    I can’t track it down and further more everything seems to work as intended, at least on first glance. The error is not thrown in my custom rendertoolbar and columnmenuopening functions. It is also not thrown on any code before the .jqxGrid call.
    A warning message with the same text is shown before the execution of the rendertoolbar callback, but the error itself is throw somewhere down the line of .jqxGrid execution.


    Peter Stoev
    Keymaster

    Hi mevolent,

    Could you share an example jsfiddle, codepen ?

    Best Regards,
    Peter Stoev

    jQWidgets team
    https://www.jqwidgets.com


    mevolent
    Participant

    Hello, Peter,

    there you go: https://jsfiddle.net/achobanov/pevyh489/17/

    This error is now crashing the grid completely as you will see. Don’t delve too deeply in the custom js code (JqxUtils object), since almost none of it is executed before the error.

    Thanks,
    Alex


    mevolent
    Participant

    Never mind the part that it is crashing the grid. It still works now. It’s a bit weird, because I don’t think I have changed anything, but I could be wrong.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.