ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: 1176758572@qq.com on April 16, 2023, 06:27:54 am

Title: lazy loading big data
Post by: 1176758572@qq.com on April 16, 2023, 06:27:54 am
i am use  pqgrid in angular, loading big data from remote server,but cant invok method "beforeSend" ,i dont know how to send jwt token to server.
pqgrid  Evaluation License version 8.5.0
Title: Re: lazy loading big data
Post by: paramvir on April 16, 2023, 06:59:07 am
beforeSend is a property of dataModel

https://paramquery.com/pro/api#option-dataModel-beforeSend

Code: [Select]
dataModel:{
   beforeSend: function( jqXHR, settings ){
 
   },
   //other properties of dataModel.
}
Title: Re: lazy loading big data
Post by: 1176758572@qq.com on April 16, 2023, 07:16:57 am
beforeSend dont work!
Title: Re: lazy loading big data
Post by: paramvir on April 16, 2023, 07:19:03 am
Upgrade to v8.7.0
Title: Re: lazy loading big data
Post by: 1176758572@qq.com on April 16, 2023, 08:15:31 am
i have two bugs in version 8.7.0,i dont konw hot to fixed them.so i used the old version 8.5.0 i will report to your email,thanks!
Title: Re: lazy loading big data
Post by: paramvir on April 16, 2023, 08:48:07 am
Thanks, though I'm unable to reproduce the issue by following the steps in your shared pdf

Can you share a quick stackblitz so as to check what's causing the issue
Title: Re: lazy loading big data
Post by: 1176758572@qq.com on April 16, 2023, 10:13:25 pm
when i set groupModel.grandSummary = true; the bugs will be recur.
Title: Re: lazy loading big data
Post by: paramvir on April 17, 2023, 06:53:13 am
I don't see any issue when this code is added

Code: [Select]
groupModel:{
on: true,
grandSummary: true
},

in this example: https://paramquery.com/pro/demos87/filter_header_local

Do you get any error in the browser console?
Title: Re: lazy loading big data
Post by: 1176758572@qq.com on April 17, 2023, 07:07:37 am
no errors, it works fine in version 8.2.1. i sent the angular code to your email yesterday. please help me,thanks!