jQWidgets Forums

jQuery UI Widgets Forums Grid f.Host = null blowing up

This topic contains 5 replies, has 1 voice, and was last updated by  nswider 9 years, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • f.Host = null blowing up #75015

    nswider
    Participant

    So the chain of events goes like this.

    1. Load Grid
    2. call window.open to open another page
    3. jqxGrid blows up with the error
    JavaScript runtime error: Unable to get property ‘css’ of undefined or null reference

    here is the code throwing the error..
    function(){if(f.host.css(“visibility”)==”visible”){f._updatesize(true);clearInterval(f._intervalTimer)}},100)}}else{f._updateTouchScrolling()}};this.dataview.databind(g);if(this.dataview.isupdating()){if(d!=undefined){this.dataview.suspend=false}else{this.dataview.resumeupdate(fals…..

    the error is coming from the first f.host.css above.

    please help this we can not purchase with this error. It shows up at other places as well.

    Thanks in advance

    f.Host = null blowing up #75016

    nswider
    Participant

    ie11 windows 8.1 jqx 3.8.0

    f.Host = null blowing up #75019

    nswider
    Participant

    turned out to be two threads building the grid at the same time.

    came back with 1 thread on window open

    f.Host = null blowing up #75021

    nswider
    Participant

    ok it occurs on two threads two grids also

    f.Host = null blowing up #75022

    nswider
    Participant

    happening on .jqxGrid(‘destroy’); 1 thread

    calling this back to back on two grids causes the second one to fail

    f.Host = null blowing up #75025

    nswider
    Participant

    At the end of the day I just had to fix the code..

    I replaced
    if(f.host.css
    with
    if(f.host && f.host.css

    in the file jqxgrid.js in two places. Everything is working fine now.

    Let me know your two cents on this.

    Thanks

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

You must be logged in to reply to this topic.