Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - JoeTexan1962

Pages: [1]
1
Help for ParamQuery Pro / Error with dropdown editor
« on: March 02, 2021, 10:24:46 pm »
I have a grid with a dropdown editor. I copied the Javascript for the grid, including the editor, from the Inline Editing demo.  This is a portion:
            { dataIndx: 'Assignment', hidden: true }, //hidden column to store Assignment Id.
            {
                title: "Assignment", width: 100, dataIndx: "AssignmentText",
                cls: 'pq-dropdown pq-side-icon',
                editor: {
                    type: 'select',
                    init: function (ui) {
                        ui.$cell.find("select").pqSelect();
                        setTimeout(function () {
                            ui.$cell.find("select").pqSelect('open');
                        })
                    },
                    valueIndx: "value",
                    labelIndx: "text",
                    mapIndices: { "text": "AssignmentText", "value": "Assignment" },
                    options: [
                        { "value": "Y", "text": "Yes" },
                        { "value": "N", "text": "No" }
                    ]
                },
                validations: [{ type: 'minLen', value: 1, msg: "Required" }]
            },

 However, I get this error when I click on the cell with the dropdown:


locations.js:787 Uncaught TypeError: ui.$cell.find(...).pqSelect is not a function
    at $.<computed>.<computed>.init (locations.js:787)
    at $.<computed>.<computed>.i.callFn (pqgrid.dev.js:5273)
    at $.<computed>.<computed>.<anonymous> (pqgrid.dev.js:14692)
    at n (pqgrid.dev.js:414)
    at $.<computed>.<computed>.e._trigger (pqgrid.dev.js:436)
    at $.<computed>.<computed>.a._editCell (pqgrid.dev.js:3112)
    at $.<computed>.<computed>.<anonymous> (pqgrid.dev.js:2924)
    at pqgrid.dev.js:2596
    at pq.cRenderBody.scrollXY (pqgrid.dev.js:16085)
    at pq.cRenderBody.scrollCell (pqgrid.dev.js:16074)

2
Help for ParamQuery Pro / Re: JQuery error with e.addEventListener
« on: February 24, 2021, 10:05:40 pm »
Thank you. I didn't notice that I was looking at the demo for the free version. That fixed the problem.

3
Help for ParamQuery Pro / Re: JQuery error with e.addEventListener
« on: February 23, 2021, 07:19:14 pm »
JSFiddle: https://jsfiddle.net/JoeTexan1962/4eLto68c/11/

I'm sure there's something simple I'm doing wrong, but I can't put my finger on it.

4
Help for ParamQuery Pro / JQuery error with e.addEventListener
« on: February 20, 2021, 06:50:50 am »
I copied the inline editing demo javascript code almost verbatim and I have it populating with data from my REST API.  However, the console shows e.addEventListener is not a function when the rows are populated and I believe this is while adding the event listener to the Edit / Delete buttons.  The Edit / Delete buttons don't work when pressed.

jquery-3.5.1.min.js:2 jQuery.Deferred exception: e.addEventListener is not a function TypeError: e.addEventListener is not a function
    at $.<computed>.<computed>.setup (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:72446)
    at Object.add (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:41504)
    at $.<computed>.<computed>.<anonymous> (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:40138)
    at Function.each (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:2976)
    at S.fn.init.each (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:1454)
    at ke (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:40114)
    at S.fn.init.on (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:46741)
    at String.<anonymous> (https://localhost:44331/Scripts/jquery-ui-1.12.1.custom/jquery-ui.js:622:13)
    at Function.each (https://localhost:44331/Scripts/jquery-3.5.1.min.js:2:3026)
    at $.<computed>.<computed>._on (https://localhost:44331/Scripts/jquery-ui-1.12.1.custom/jquery-ui.js:594:5) undefined

Uncaught TypeError: e.addEventListener is not a function
    at $.<computed>.<computed>.setup (jquery-3.5.1.min.js:2)
    at Object.add (jquery-3.5.1.min.js:2)
    at $.<computed>.<computed>.<anonymous> (jquery-3.5.1.min.js:2)
    at Function.each (jquery-3.5.1.min.js:2)
    at S.fn.init.each (jquery-3.5.1.min.js:2)
    at ke (jquery-3.5.1.min.js:2)
    at S.fn.init.on (jquery-3.5.1.min.js:2)
    at String.<anonymous> (jquery-ui.js:622)
    at Function.each (jquery-3.5.1.min.js:2)
    at $.<computed>.<computed>._on (jquery-ui.js:594)

Pages: [1]