ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: nsymons on September 17, 2024, 12:45:09 am

Title: Struts 2 jQuery tabs and paramquery issue
Post by: nsymons on September 17, 2024, 12:45:09 am
We are currently utilizing Struts v2.5.33 and pqGrid v7.3.0. When we are working within the tab and attempt to call a modal that contains a grid it throws an error. The tabs and modal open when we comment out the line $grid = $("#gridSelector").pqGrid(obj); within the modal. So we know the tabs and modal work, but once paramquery is introduced it fails. We have the same modal work on other pages without the struts tabs functionality. The error in the browser is as follows that points to the call of the rendering of the tab that contains the modal and paramquery:

VM158:59 Uncaught SyntaxError: Unexpected token ';'
    at eval (<anonymous>)
    at Function.globalEval (jquery-2.2.4.min.js:2:2640)
    at ua (jquery-2.2.4.min.js:3:13257)
    at n.fn.init.append (jquery-2.2.4.min.js:3:14539)
    at n.fn.init.<anonymous> (jquery-2.2.4.min.js:3:15641)
    at K (jquery-2.2.4.min.js:2:30342)
    at n.fn.init.html (jquery-2.2.4.min.js:3:15322)
    at <anonymous>:23:30

Has this been seen before or has a possible solution within paramquery?
Title: Re: Struts 2 jQuery tabs and paramquery issue
Post by: paramvir on September 17, 2024, 06:47:21 am
This has not been seen before.

Could you please share a small test case on jsfiddle reproducing the issue so that I can check what's going on.
Title: Re: Struts 2 jQuery tabs and paramquery issue
Post by: necatiozbek on September 17, 2024, 07:53:25 pm
Maybe it can give you an idea. I had a similar problem with Bootstrap Modal. After showing the modal (onshow event), I defined the grid and loaded the data. The problem was solved.