jQuery Grid
Set the scrollbarsize property of the jqxGrid. Author: http://jqwidgets.com
by musicreader
HTML
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="https://jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/generatedata.js"></script>
<div id="jqxgrid"></div>
JavaScript
var data = generatedata(500);
var source = {
localdata: data,
datafields: [{
name: 'firstname',
type: 'string'
}, {
name: 'lastname',
type: 'string'
}, {
name: 'productname',
type: 'string'
}, {
name: 'date',
type: 'date'
}, {
name: 'quantity',
type: 'number'
}, {
name: 'price',
type: 'number'
}],
datatype: "array"
};
var adapter = new $.jqx.dataAdapter(source);
$("#jqxgrid").jqxGrid({
width: 500,
theme: 'energyblue',
scrollbarsize: 20,
source: adapter,
sortable: true,
columns: [{
text: 'First Name',
datafield: 'firstname',
width: 90
}, {
text: 'Last Name',
datafield: 'lastname',
width: 90
}, {
text: 'Unit Price',
datafield: 'price',
cellsalign: 'right',
cellsformat: 'c2',
cellsrenderer: function (row, columnfield, value, defaulthtml, columnproperties) {
return '<div class="handle">pr:'+value+"</div>";
}
}]
});
var gridCells = $('#jqxgrid').find('.handle').parent();
// initialize the jqxDragDrop plug-in. Set its drop target to the second Grid.
gridCells.jqxDragDrop({
dragZIndex: 99999,
dropAction: 'none',
distance:6,
/*restricter:'document'*/
/*initFeedback: function (feedback) {
feedback.height(rowHeight);
feedback[0].id="feedbackPopover";
},*/
});
gridCells.on('touchstart', function (event) {
gridCells.parent().on('touchstart', function(e) {
e.preventDefault();
e.stopPropagation();
});
});
$(document).on('touchend', function (event) {
...