Author Topic: lazy loading big data  (Read 737 times)

[email protected]

  • Newbie
  • *
  • Posts: 5
    • View Profile
lazy loading big data
« 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

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: lazy loading big data
« Reply #1 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.
}

[email protected]

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: lazy loading big data
« Reply #2 on: April 16, 2023, 07:16:57 am »
beforeSend dont work!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: lazy loading big data
« Reply #3 on: April 16, 2023, 07:19:03 am »
Upgrade to v8.7.0

[email protected]

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: lazy loading big data
« Reply #4 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!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: lazy loading big data
« Reply #5 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

[email protected]

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: lazy loading big data
« Reply #6 on: April 16, 2023, 10:13:25 pm »
when i set groupModel.grandSummary = true; the bugs will be recur.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: lazy loading big data
« Reply #7 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?

[email protected]

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: lazy loading big data
« Reply #8 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!