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 - paramvir

Pages: [1] 2 3 ... 426
1
Bug Report / Re: New row comit and pq_detail column
« on: March 25, 2025, 11:20:17 pm »
pq_detail and column with type: "detail" are not the same. pq_detail is a property of the rowData while column of type: 'detail' is used for nesting or row details.

2
Bug Report / Re: New row comit and pq_detail column
« on: March 25, 2025, 03:24:55 pm »
pq_detail is not used in the colModel in any of the nesting / row details examples.

Have you tried removing pq_detail from colModel.

3
refresh() is required after refreshCM() to see the new colModel in view.

PS: There are inbuilt options to control the save and load state properties.

https://paramquery.com/pro/api#option-stateColKeys

https://paramquery.com/pro/api#option-stateKeys

4
Bug Report / Re: New row comit and pq_detail column
« on: March 21, 2025, 11:46:01 am »
I don't understand why you have added pq_detail in the colModel. Can you please clarify?

5
Help for ParamQuery Pro / Re: Using loadState in grouped fields
« on: March 20, 2025, 06:10:22 pm »
Thanks for mentioning the steps.

Please add this patch to fix the error.

Code: [Select]
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};

and ensure to use v10.x of pqgrid since support for grouped columns in state is not available in older versions.

6
I understand that's incorrect behavior of pqgrid pivot to use default aggregate as "sum" for all columns. It would be fixed in upcoming version.

Meanwhile please use this patch to fix it

Code: [Select]
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};

you may remove the custom code in pivotCM event related to it.

7
you have to make few code changes in order to make it work for evaluation copy.

Please refer to the upgrade guides https://paramquery.com/pro/upgrade/Index to find out the required changes in your code.

8
Help for ParamQuery Pro / Re: Clear Text Icon in Header Filters
« on: March 19, 2025, 06:47:41 pm »
Please set filterModel.hideClearIcon to true to disable it.

https://paramquery.com/pro/api#option-filterModel

9
It has nothing to do with jQuery/ jQueryUI but this is how scrollModel.autoFit works for now, the horizontal scrollbar is never displayed with this option.

The feature to display a horizontal scrollbar when column widths reach their minimum and no space remains for scrollModel.autoFit has been reintroduced in the upcoming version.

10
This feature was available in older versions of pqgrid but lost when we migrated to smooth native scrolling in v5.

It has been reintroduced in upcoming version, thanks for your feedback.

11
Thanks for reporting the issue. It's caused by change in functioning of jquery show method in 3.x, it only works if the element is attached to DOM.

There are 2 alternate ways to fix it.

1) Use this patch:

Code: [Select]
$.paramquery.pqGrid.prototype.showLoading = function () {
  this.loading = true
  this.$loading[0].style.display = "block"
}

or
2. Change the detailModel.init method

Code: [Select]
        init: function (ui) {
          var rowData = ui.rowData,
            detailobj = gridDetailModel(this, rowData), //get a copy of gridDetailModel
            $grid = $("<div/>") //.pqGrid(detailobj) //init the detail grid.

          setTimeout( _ => $grid.pqGrid(detailobj) );

          return $grid
        },

jsfiddle: https://jsfiddle.net/rpx0dkef/1/

12
Please ensure to upgrade jqueryUI also to one of the latest versions compatible with jquery 3.7.1.

Please remove the scrollModel.autoFit:  true option to display the horizontal scrollbar when required.

13
Help for ParamQuery Pro / Re: Using loadState in grouped fields
« on: March 11, 2025, 03:19:33 pm »
Is there any particular sequence of events which cause the error.

I've clicked the saveState and loadState buttons a couple of times while continuously changing various grid options, such as the group-by column, order of columns, page number, etc., but I haven't been able to reproduce the error so far.

14
Help for ParamQuery Pro / Re: Treegrid pagination
« on: March 07, 2025, 07:08:27 am »
It's mentioned on this example: https://paramquery.com/pro/demos/treegrid

Paging:

Treegrid is not compatible with paging.

15
I was hoping to see the live issue on jsfiddle. Since your jsfiddle is not functioning, I can only make a guess. There are a couple of showLoading and hideLoading calls in your code. Please comment them one by one and see how it goes.

Pages: [1] 2 3 ... 426