1
Help for ParamQuery Pro / Re: PHP 7 -> PHP 8
« on: May 15, 2025, 05:27:41 pm »
IS {"data":[{"c":1}} data of host grid or the remote filter options?
Could you share a jsfiddle.
Could you share a jsfiddle.
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.
summaryOptions: {
number: "avg,max,min,stdev,stdevp,sum,count"
},
<style>
.pq-grid{
font-family: Arial, sans-serif !important;
font-size: 20px !important;
}
</style>
<style>
.pq-grid{
font-family: Arial, sans-serif;
font-size: 20px;
}
</style>
//fix for RTL.
pq.scrollLeft = (ele, val) => {
if (val == null) {
return Math.abs(ele.scrollLeft)
}
else {
val = Math.abs(val);
if ($(ele).css('direction') == 'rtl') {
val = -1 * val;
}
ele.scrollLeft = val;
}
}
pq.scrollLeftVal = (ele, val) => Math.abs(val)
jQuery.paramquery.pqGrid.prototype.loadState=function(e){e=e||{};var t,o=this,r=$.widget.extend,d=e.state||o.getState();if(!d)return!1;pq.isStr(d)&&(d=JSON.parse(d));var a,l=d.colModel,i="pid"+Math.random(),n={},s={},p={},h=o.options,M=e=>e.dataIndx||e.id||e.title,c=(delete(a=h.stateColKeys).colModel,delete a.dataIndx,a),f=h.colModel,u=(e,t,o,r)=>{var d=o[t]={};e.forEach(((e,a)=>{var l=M(e);e.parentId=t,r[l]=e,d[l]=a,e.colModel&&u(e.colModel,l,o,r)}))};for(var g in u(l,i,s,n),p[i]={colModel:f},u(f,i,{},p),p){var v=n[g],N=p[g];if(v){if(N.parentId!=v.parentId){var w=p[N.parentId],I=p[v.parentId];I&&(w.colModel.splice(w.colModel.indexOf(N),1),I.colModel.push(N))}o._saveState(v,N,c)}}return function e(t,o){var r=s[o];r&&t.sort((function(e,t){return r[M(e)]-r[M(t)]})),t.forEach((t=>{delete t.parentId;var o=t.colModel||[];o.length&&e(o,M(t))}))}(f,i),o.iCols.init(),r(h.sortModel,d.sortModel),r(h.pageModel,d.pageModel),o.Group().option(d.groupModel,!1),o.Tree().option(d.treeModel,!1),t={freezeRows:d.freezeRows,freezeCols:d.freezeCols},isNaN(1*h.height)||isNaN(1*d.height)||(t.height=d.height),isNaN(1*h.width)||isNaN(1*d.width)||(t.width=d.width),o.option(t),!1!==e.refresh&&o.refreshDataAndView(),!0};
jQuery.paramquery.cToolPanel.prototype.getObj=function(t){var a={},e=this.that;return t.find(".pq-pivot-col").each((function(t,r){var u=r.dataset.di,o=e.getColumn({dataIndx:u}),n=r.getAttribute("type")||o.summaryDefault||e.iGroup.getAggOptions(o.dataType)[0];o.summaryDefault=a[u]=n})),a};