jQWidgets Forums
jQuery UI Widgets › Forums › Grid › jqxGrid scroll errors
Tagged: datagrid android, datagrid iphone, datagrid mobile
This topic contains 8 replies, has 2 voices, and was last updated by admin 4 years, 10 months ago.
-
AuthorjqxGrid scroll errors Posts
-
A number of my app users have contacted me about errors showing up when scrolling using jqxGrid from both Android and Apple devices.
I made a simple test app using a button and a jqxGrid to show the error. If i put my finger on the vertical scrollbar then slide it down, then release finger, then drag it back up the page, i get this error almost every time:jqxscrollbar.js
Uncaught TypeError: Cannot read property ‘originalEvent’ of undefined. line 8 column 7109
Grabbing, sliding and releasing the scrollbars seems to cause it.I made a simple program to show this – contains a single button (Button1) and the jqxGrid (Grid1). I used this code:
Button1.onclick = function() { gedata = []; //get grid data for (i = (0); i <= 100; i ++) { row = []; for (j = (0); j <= 10; j ++) { row["col" + j] = i; } gedata[i] = row; } //get data field array and columns to display datafieldsArray = []; columnsArray = []; gridcolsindex = 0; for (k = (0); k <= 10; k ++) { datafieldsArray[gridcolsindex] = {name: "col" + k , type: "text"}; columnsArray[gridcolsindex] = {text: "Col" + k, datafield: "col" + k, cellsalign: 'center', align: 'center', width: "10%"}; gridcolsindex = gridcolsindex + 1; } var source = { localdata: gedata, datafields: datafieldsArray, datatype: "array" }; var adapter = new $.jqx.dataAdapter(source); $("#Grid1").jqxGrid({ //width: 800, theme: 'energyblue', //columnsheight: 25, rowsheight: 30, source: adapter, sortable: True, //selectionmode: 'singlecell', columns: columnsArray }); }
Really appreciate any help.
ThanksHi pedro10,
Which version of jQWidgets do you use?
Best regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/Hi Peter,
I initially tested using version 9.1.4 then tested with version 10.0.2, and i get the same error for both versions.
It only happens when running it on an Android or Apple device.Thanks
Hi pedro10,
Unfortunately, we are unable to reproduce this. We tested it with iphone x, iphone 11 pro, galaxy s10, galaxy note 10.
Best regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/Hi Peter,
The error is more noticeable when pressing/releasing/ shifting the vertical scrollbar. You may need to play with it a bit to show the error.
I’ve kept trying on other devices and the error keeps showing.Thanks
Hi pedro10,
Is this reproduceable in an app using only jQWidgets like some of our online examples? I am asking, because in a different post you write that you use NSBasic, too.
Best regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/Hi Peter,
This is reproduceable on all apps i’m creating using only jQWidgets. I’ve tried online examples and they work fine on jsfiddle and using Desktop Chrome, but always get errors when running on an Android device using Chrome or as an apk. I’m thinking it could be an NSBasic issue. I’ll double check with them again.
Thanks
Hi Peter,
Do you have a direct email? I’d like to send a URL to you if possible to show the error.
Thanks
Hi pedro10,
Yes, you can send the url to support@jqwidgets.com
Best regards,
Peter StoevjQWidgets Team
https://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.