Author Topic: pqGrid browser rendering error  (Read 1992 times)

[email protected]

  • Newbie
  • *
  • Posts: 3
    • View Profile
pqGrid browser rendering error
« on: January 23, 2019, 06:49:24 am »
I'm using the PQGrid Pro evaluation copy (ParamQuery Pro v 2.3.0).  I had
resolved my build issue posted earlier today to this forum.  But I'm getting
a browser rendering error.  The error is shown below along with my configuration.
Note that using pqgrid.min.js and pqgrid.dev.css since I had encountered another
runtime error.  The configuration below gets me to the location shown.

// browser error:

TypeError: t.ui is undefined    pqgrid.min.js:9:7781


// Configuration -
// angular.json:

...
            "styles": [
              "src/styles.css",
              "node_modules/jquery-ui-themes/jquery-ui.css",
              "node_modules/bootstrap/dist/css/bootstrap.css",
              "./pqgrid.dev.css",
              "./pqgrid.ui.min.css"
            ],
            "scripts": [
              "node_modules/jquery/dist/jquery.js",
              "node_modules/jquery-ui/ui/jquery-1-7.js",
              "node_modules/bootstrap/dist/js/bootstrap.js",
              "./pqgrid.min.js"
            ]
         
// tsconfig.json

    "types": [
      "jquery",
      "jqueryui",
      "pqgrid"
    ]

// my home.component.ts:

import 'jquery';
import 'jquery-ui';
import * as $ from '../../../pqgrid.min.js';

ngOnInit() {

 ...

    const pq = $.paramquery;
    pq.pqgrid('#grid_array', obj);
  }