jQWidgets Forums

jQuery UI Widgets Forums Grid ColumnResize problem

This topic contains 2 replies, has 2 voices, and was last updated by  yuanru 10 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • ColumnResize problem #66433

    yuanru
    Participant

    theme: “bootstrap”,
    width: “100%”,
    height: 400,
    source: dataAdapter,
    columnsresize: true,
    filterable: true,
    filtermode: ‘excel’,
    sortable: true,
    columns: columns,
    columngroups: columngroups,

    <link rel=”stylesheet” href=”/assets/jqx/jqwidgets/styles/jqx.base.css” type=”text/css” />
    <link rel=”stylesheet” href=”/assets/jqx/jqwidgets/styles/jqx.bootstrap.css” media=”screen”>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxcore.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxdata.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxbuttons.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxscrollbar.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxmenu.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxgrid.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxgrid.sort.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxgrid.grouping.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxgrid.aggregates.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxgrid.filter.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxgrid.columnsresize.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxgrid.columnsreorder.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxgrid.pager.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxgrid.edit.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxgrid.selection.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxpanel.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxcheckbox.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxlistbox.js”></script>
    <script type=”text/javascript” src=”/assets/jqx/jqwidgets/jqxdropdownlist.js”></script>

    With this setting, when I alter the column width, rase an error: Uncaught TypeError: Cannot read property ‘style’ of undefined.
    And when calling $(“#kp_grid”).jqxGrid(‘clearfilters’); raise the same error.

    While I remove the columngroups setting, the error dispeared.

    Could someone please help me with the problem, thanks!

    ColumnResize problem #66436

    Peter Stoev
    Keymaster

    Unfortunately, we cannot reproduce that. Example: http://jsfiddle.net/jqwidgets/w7mL0qkb/. Example #2 with clearfilters call: http://jsfiddle.net/jqwidgets/tz4enwz2/

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    ColumnResize problem #66439

    yuanru
    Participant

    Hi Peter,
    Thanks for your testing. Finally I find the error. Some columngroups defined before haven’t been deleted yet. When I delete the abandoned columngroups, the error don’t emerge again.

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

You must be logged in to reply to this topic.