Author Topic: Filter data display issue after updating row  (Read 377 times)

pranit@srcomsec

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 99
    • View Profile
Filter data display issue after updating row
« on: November 11, 2022, 07:29:35 pm »
The grid is not refreshing after updating the row data value so grid data will be displayed without filter parameters.

Please refer to the screenshot attached and let me know how to display rows with the status "EPending" only if any row data is updated with different Status.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Filter data display issue after updating row
« Reply #1 on: November 11, 2022, 10:38:36 pm »
Filter is not refreshed by default after update due to performance reasons.

Please add this to grid initialization option to refresh filter after update:

Code: [Select]
change: function(){
this.filter();
},

pranit@srcomsec

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 99
    • View Profile
Re: Filter data display issue after updating row
« Reply #2 on: November 14, 2022, 12:37:47 pm »
Thank you, the functionality is working but we are getting the below javascript error in the console.
--------------------------------------------------
pqgrid.min.js:9 Uncaught TypeError: Cannot read properties of undefined (reading 'refresh')
    at A.refresh (pqgrid.min.js:9:58889)
    at a.paramquery.cCheckBoxColumn.checkNodes (pqgrid.min.js:9:115361)
    at V.<computed>.<computed>.<anonymous> (pqgrid.min.js:9:116400)
    at p (pqgrid.min.js:9:9904)
    at t._trigger (pqgrid.min.js:9:10392)
    at a (pqgrid.min.js:9:50394)
    at HTMLDivElement.<anonymous> (pqgrid.min.js:9:50649)
    at HTMLDivElement.dispatch (jquery.js:5430:27)
    at elemData.handle (jquery.js:5234:28)
---------------------------------------------------------------


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Filter data display issue after updating row
« Reply #3 on: November 14, 2022, 02:19:28 pm »
Please share a jsfiddle.