jQWidgets Forums

jQuery UI Widgets Forums Grid JavaScript Error While loading the source in Grid

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 9 years, 10 months ago.

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

  • ashvani18
    Participant

    Hi,

    In our code , we first do the intialization of grid and in other mentod we load the source in grid by using adapter.
    $(“#collectorGrid”).jqxGrid({
    width : ‘100%’,
    theme : theme,
    pageable: true,
    pagesize: 20,
    pagesizeoptions: [ 20, 40, 60, 80, 100],
    filterable: true,
    showfilterrow: true,
    columnsresize: true,
    columnsreorder: false,
    autoheight: true,
    sortable: true,
    altrows: true
    });

    $(“#collectorGrid”).jqxGrid({
    source : collectorAdapter
    });

    while loading the source, we are getting following error after upgrading the JQWidgets from 3.7.1 to 3.8.2
    Uncaught TypeError: Cannot read property ‘off’ of undefined
    a.jqx.removeHandler @ jqxcore.js:7
    a.jqx.(anonymous function).removeHandler @ jqxcore.js:7
    a.extend._destroyedfilters @ jqxgrid.filter.js:7

    One solution which i have got is – set the filterable false before loading the source and make the grid filterable with source loading.
    $(“#collectorGrid”).jqxGrid({
    filterable: false,
    showfilterrow: false
    });

    $(“#collectorGrid”).jqxGrid({
    source : collectorAdapter,
    filterable: true,
    showfilterrow: true,
    });

    Please help me to get rid of this error.


    ivailo
    Participant

    Hi ashvani18,

    We tested jqxGrid adapted to your settings and we can’t see such a behavior.
    Please send a fiddle/jseditor link for better analyze of the problem.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.