jQWidgets Forums
jQuery UI Widgets › Forums › Grid › ColumnResize problem
Tagged: grid columns hierarchy
This topic contains 2 replies, has 2 voices, and was last updated by yuanru 10 years, 4 months ago.
-
AuthorColumnResize problem Posts
-
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!
Unfortunately, we cannot reproduce that. Example: http://jsfiddle.net/jqwidgets/w7mL0qkb/. Example #2 with clearfilters call: http://jsfiddle.net/jqwidgets/tz4enwz2/
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi 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. -
AuthorPosts
You must be logged in to reply to this topic.