Author Topic: Refresh the summaryData after the updateRow  (Read 491 times)

vijay@spinetechnologies

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 87
    • View Profile
Refresh the summaryData after the updateRow
« on: June 10, 2022, 05:08:18 pm »
Hi Paramveer,

I want to update the summary data records after the updateRow event.  Is there any way to update the same?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Refresh the summaryData after the updateRow
« Reply #1 on: June 10, 2022, 07:14:17 pm »
Summary set up with column.summary API or excel methods is automatically updated when data in grid is updated by updateRow method.

There is no need to update it manually.

vijay@spinetechnologies

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 87
    • View Profile
Re: Refresh the summaryData after the updateRow
« Reply #2 on: June 13, 2022, 10:17:25 am »
can you please provide an example with the column.summary method

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Refresh the summaryData after the updateRow
« Reply #3 on: June 13, 2022, 10:52:34 pm »
column.summary definition example is provided here: https://paramquery.com/pro/api#option-column-summary

And turn on the groupModel option to make the column.summary option work.

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