The following works fine in the desktop environment but doesn't seem to work on a mobile device. Are there any options that I have set that might interfere with the scrolling? I've included a screen shots of the app on the desktop and a mobile device.
The colModel is just a holder for a REST call initiated by the user, so the colModel is dynamically created further on. When the JSON is received by the app, there are about 40 columns, where only about 3 of them are visible on a mobile device.
Thanks.
brian
var obj = {
title: "Road Segments", editable: false, collapsible: false, selectionModel: { type: null },
virtualX: false, height: 'flex', width: 'auto', scrollModel: { autoFit: false }, freezeCols: 1
};
obj.colModel = [
{ title: "", dataIndx: "state", width: 30, align: "center", type: 'checkBoxSelection', cls: 'ui-state-default', resizable: false, sortable: false, cb: {all: true, header: true} },
{ title: "HwyName", width: 100, dataType: "string", dataIndx: "HwyName" }
];
obj.dataModel = {
data: [{ HwyName: "Temp1", state: false }],
location: "local",
sorting: "local"
};
// 11/9/18 bb define the toolbar
obj.toolbar = {
items: [
{ type: 'button', label: 'More/Less', attr: 'title="show more columns"', listeners: [{ click: showColsHandler }] },
],
cls: 'pq-toolbar-right-bb'
};
$("#roads_grid").pqGrid(obj);