Author Topic: Setting editable: false causes the summary to be uneditable.  (Read 2345 times)

TeeJT

  • Pro Ultimate
  • Jr. Member
  • *
  • Posts: 88
    • View Profile
In your demos 3.30 under "Row grouping" i.e. http://paramquery.com/pro/demos/group_rows
I just added the property to the grid - editable: false - this causes the whole grid to be not editable which includes the summary even though the summary model - I have added the property edit: true

What I need is to have the whole grid not editable but the summary should be editable i.e. the user can choose the summary e.g. Sum, Avg, Count, Max, etc.

Is there any workaround for this?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Setting editable: false causes the summary to be uneditable.
« Reply #1 on: July 26, 2016, 05:45:47 pm »
Quote
What I need is to have the whole grid not editable but the summary should be editable i.e. the user can choose the summary e.g. Sum, Avg, Count, Max, etc.

1. Add editable: false in columnTemplate

2. and add editable callback in the summary column.

Code: [Select]
editable: function( ui ){
var rd = ui.rowData;
return (rd.pq_gtitle || rd.pq_gsummary);
},
« Last Edit: July 26, 2016, 05:53:32 pm by paramquery »