jQuery UI Widgets › Forums › Grid › Upgrade from 3.7.0 to 3.8.2; Cannot read property
Tagged: 3.8.2, angular grid, grid, grid nested, jquery grid, jqxgrid, nested grids, update, v3.8.2
This topic contains 4 replies, has 3 voices, and was last updated by justin.mann 9 years, 1 month ago.
-
Author
-
Uncaught TypeError: Cannot read property 'parentNode' of undefined b.extend._rendervisualrows.H @ jqx-all.js:7 b.extend._rendervisualrows @ jqx-all.js:7 b.extend._renderrows.q @ jqx-all.js:7 b.extend._renderrows @ jqx-all.js:7 b.extend.rendergridcontent @ jqx-all.js:7 (anonymous function) @ jqx-all.js:7
I get the error at following line in jqx-all.js:
i.parentNode&&i.parentNode.nodeName!="#document-fragment")
Here is my code for the grid:
$(serviceGridId).jqxGrid({ width: gOptions.serviceGridWidth , height: gOptions.serviceGridHeight, source: dataAdapter, pageable: true, pagesizeoptions: ['20', '50'], editable: true, editmode: 'dblclick', showaggregates: true, showstatusbar: true, rowdetails: true, initrowdetails: initRowDetails, rowdetailstemplate: { rowdetails: "<div id='grid' style='margin: 10px;'></div> <div class='travel_grid' style='margin: 10px;'></div>", rowdetailsheight: 340, rowdetailshidden: true }, ready: function() {}, showtoolbar: true, enabletooltips: true, rendertoolbar: function(toolbar) { var me = this; var container = $("<div style='margin: 5px;'></div>"); toolbar.append(container); container.append('<input id="addrowbutton" type="button" value="New" />'); container.append('<input style="margin-left: 5px;" id="addmultiplerowsbutton" type="button" value="Refresh" />'); container.append('<input style="margin-left: 5px;" id="deleterowbutton" type="button" value="Delete" />'); container.append('<input style="margin-left: 5px;" id="updaterowbutton" type="hidden" value="Update" />'); $("#addrowbutton").jqxButton(); $("#addmultiplerowsbutton").jqxButton(); // refresh $("#deleterowbutton").jqxButton(); $("#updaterowbutton").jqxButton(); // update row. $("#updaterowbutton").on('click', function() { var selectedrowindex = $(serviceGridId).jqxGrid('getselectedrowindex'); var rowscount = $(serviceGridId).jqxGrid('getdatainformation').rowscount; alert("updaterowbutton - " + selectedrowindex); }); ...
Hello san1646,
Please make sure you have updated all jQWidgets files to version 3.8.2 and not just jqxgrid.js. If the issue persists, please share a JSFiddle/jsEditor example we can test to determine what causes the error.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/I have updated all the JS as well as CSS files. I will create a JSFiddle and update here.
THanks,
I am having a similar issue with jqxwindow.js lib actually.. Admittedly my environment is a little wonky as I am working with a Domino server on the back end. I believe most of the issues I have are exclusively related to environment and script staging (I won’t even get into this bit), but what I have found is I have much greater success by simply avoiding the compressed versions of the scripts. (Hopefully this helps your situation san1646, if you have an older script loader or you are staging your scripts in a db this may help smooth things out, not really these folks issue if that is what is going on… just avoid minified scripts.) This is what brings me here today.. as I stated I am having issues with the compressed jqxwindow.js file… We have an enterprise license… we have bought one for the last couple years since I started working here (this is on my recommendation). So, in the past I have found little issue with getting dev or uncompressed code, I need this. Am I missing something? I have dug thru the src and public versions of the zips??? I was under the impression this is part of what we are paying for? Please advise. Where can I get these items, please don’t tell me you no longer make them available… I am worried this is the case and that will make no one happy here including me. I love your product and would continue to keep using it, but if it is consistently difficult to do simple update in this environment what are we paying for? Sorry to express concern before I have a resolution from you, just wanted to get it all out there, unrealistic concerns (I hope) and all…
I don’t want help troubleshooting, I want uncompressed code… that is all. please and thank you. 🙂
I will continue to look around, simple thing guys, I don’t think I should ‘still’ be looking, hope it is here and if it is not I hope you realize you are selling product to DEVELOPERS TOO, developers write and modify code, compressed code is not appropriate for us…
Justin Mann
apologizes,
Moments after I complained loudly I found the uncompressed code I was looking for.. Too many windows open and apparently too much coffee.. Please ignore .src contains appropriate versions of all scripts. anyone having issues of this nature and you are sure all your dependencies are in place correctly please do test with uncompressed code as it will help alleviate any environmental issues script staging or other complicated environmental enhancements may introduce to the mix.
Happy coding,
Justin -
AuthorPosts
You must be logged in to reply to this topic.