jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Resize problem at 10.1.0 version
This topic contains 7 replies, has 3 voices, and was last updated by tenantor 4 years, 9 months ago.
-
Author
-
I newly upgrade my web app 9.1.4 to 10.1.0 and I am started to getting error on grid autoresize.
I include jqwidgets with jqx-all.js lib.
Error detail is;this.escape_HTML is not a function
jqx-all.js?v=1010:83 Uncaught TypeError: this.escape_HTML is not a function
at c.<anonymous> (jqx-all.js?v=1010:83)
at Function.each (jquery.min.js?v=331:2)
at c.<computed>._updatecolumnwidths (jqx-all.js?v=1010:83)
at c.<computed>.autoresizecolumns (jqx-all.js?v=1010:89)
at Object.b.jqx.invoke (jqx-all.js?v=1010:15)
at Object.b.jqx.jqxWidgetProxy (jqx-all.js?v=1010:15)
at HTMLDivElement.<anonymous> (jqx-all.js?v=1010:15)
at Function.each (jquery.min.js?v=331:2)
at w.fn.init.each (jquery.min.js?v=331:2)
at w.fn.init.b.fn.<computed> [as jqxGrid] (jqx-all.js?v=1010:15)Hi,
We tried to reproduce this using the following code:
<!DOCTYPE html> <html lang="en"> <head> <title id='Description'>This example shows how to auto-resize the grid columns.</title> <meta name="description" content="JavaScript Grid Auto Resize Grid columns" /> <link rel="stylesheet" href="../../../jqwidgets/styles/jqx.base.css" type="text/css" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1 minimum-scale=1" /> <script type="text/javascript" src="../../../scripts/jquery-1.12.4.min.js"></script> <script type="text/javascript" src="../../../jqwidgets/jqx-all.js"></script> <script type="text/javascript" src="../../../scripts/demos.js"></script> <script type="text/javascript"> $(document).ready(function () { var url = "../../sampledata/orders.xml"; // prepare the data var source = { datatype: "xml", datafields: [ { name: 'ShippedDate', map: 'm\\:properties>d\\:ShippedDate', type: 'date' }, { name: 'Freight', map: 'm\\:properties>d\\:Freight', type: 'float' }, { name: 'ShipName', map: 'm\\:properties>d\\:ShipName', type: 'string' }, { name: 'ShipAddress', map: 'm\\:properties>d\\:ShipAddress', type: 'string' }, { name: 'ShipCity', map: 'm\\:properties>d\\:ShipCity', type: 'string' }, { name: 'ShipCountry', map: 'm\\:properties>d\\:ShipCountry', type: 'string' } ], root: "entry", record: "content", id: 'm\\:properties>d\\:OrderID', url: url }; var dataAdapter = new $.jqx.dataAdapter(source); $("#grid").jqxGrid( { width: getWidth('Grid'), source: dataAdapter, columns: [ { text: 'Ship Name', datafield: 'ShipName', width: 50 }, { text: 'Shipped Date', datafield: 'ShippedDate', width: 30, cellsformat: 'D' }, { text: 'Freight', datafield: 'Freight', width: 30, cellsformat: 'F2', cellsalign: 'right' }, { text: 'Ship Address', datafield: 'ShipAddress', width: 50 }, { text: 'Ship City', datafield: 'ShipCity', width: 100 }, { text: 'Ship Country', datafield: 'ShipCountry'} ] }); $("#button").jqxButton({ theme: theme }); $("#button").click(function () { $("#grid").jqxGrid('autoresizecolumns'); }); }); </script> </head> <body class='default'> <div id="grid"> </div> <div style="margin-top: 30px;"> <input id="button" type="button" value="Auto Resize Columns" /> </div> <div style="position: absolute; bottom: 5px; right: 5px;"> <a href="https://www.jqwidgets.com/" alt="https://www.jqwidgets.com/"><img alt="https://www.jqwidgets.com/" title="https://www.jqwidgets.com/" src="https://www.jqwidgets.com/wp-content/design/i/logo-jqwidgets.png"/></a> </div> </body> </html>
However, we cannot find a problem with this. Could you share a code which demonstrates the reported Datagrid behavior?
Best regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/I am getting same error while resizing the grid column.
I created that error at jqwidgets demo content columnsresizing.html.
After the grid initialed , i resized the quantity column to the grid total width and finally the error occured.Hi tenantor,
We are unable to reproduce this. For example the column resizing demo: https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/columnsresizing.htm?light works correctly without any errors thrown. Please, share online demo which demonstrates a problem.
Best regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/Hi Peter,
You can find attached video; http://www.tenantor.com/download/column_resize_problem.wmv
Hi tenantor,
Thanks for the feedback. We were able to fix it thanks to this video.
Best regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/Hi,
The issue is resolved in 10.1.2. You can download it from the website.
Best regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/Hi, yes it is worked. Thanks for your help.
-
AuthorPosts
You must be logged in to reply to this topic.