jqxGrid in jqxSplitter

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">
<script src="https://jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/generatedata.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.arctic.css">
<div id="jqxpanel">
    <div id="jqxSplitter">
        <div id="Panel1">
            <div id=" jqxTree "></div>
        </div>
        <div id="Panel2">
            <div id="jqxgrid"></div>
        </div>
    </div>
</div>

CSS

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

JavaScript

var theme = 'arctic';
$("#jqxpanel").jqxPanel({
    theme: theme,
    width: '98%',
    height: '98%',
    sizeMode: "wrap"
});
$('#jqxSplitter').jqxSplitter({
    width: '97%',
    height: '97%',
    panels: [{
        size: '25%'
    }, {
        size: '75%'
    }],
    theme: theme
});

// prepare the data
var data = new Array();
var firstNames = [
    "Andrew", "Nancy", "Shelley", "Regina", "Yoshi", "Antoni", "Mayumi", "Ian", "Peter", "Lars", "Petra", "Martin", "Sven", "Elio", "Beate", "Cheryl", "Michael", "Guylene"];
var lastNames = [
    "Fuller", "Davolio", "Burke", "Murphy", "Nagase", "Saavedra", "Ohno", "Devling", "Wilson", "Peterson", "Winkler", "Bein", "Petersen", "Rossi", "Vileid", "Saylor", "Bjorn", "Nodier"];
var productNames = [
    "Black Tea", "Green Tea", "Caffe Espresso", "Doubleshot Espresso", "Caffe Latte", "White Chocolate Mocha", "Cramel Latte", "Caffe Americano", "Cappuccino", "Espresso Truffle", "Espresso con Panna", "Peppermint Mocha Twist"];
var priceValues = [
    "2.25", "1.5", "3.0", "3.3", "4.5", "3.6", "3.8", "2.5", "5.0", "1.75", "3.25", "4.0"];
for (var i = 0; i < 1000; i++) {
    var row = {};
    var productindex = Math.floor(Math.random() * productNames.length);
    var price = parseFloat(priceValues[productindex]);
    var quantity = 1 + Math.round(Math.random() * 10);
    row["firstname"] = firstNames[Math.floor(Math.random() * firstNames.length)];
    row["lastname"] = lastNames[Math.floor(Math.random() * lastNames.length)];
    row["productname"] = productNames[productindex];
    row["price"] = price;
    row["quantity"] = quantity;
    row["total"] = price * quantity;
    row["firstname1"] = firstNames[Math.floor(Math.random() * firstNames.length)];
    row["lastname1"] = lastNames[Math.floor(Math.random() * lastNames.length)];
    row["productname1"] = productNames[productindex];
    row["price1"] = price;
    row["quantity1"] = quantity;
    row["total1"] = price * quantity;
    row["firstname2"] =...