ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: TeeJT on July 25, 2016, 08:50:30 pm

Title: Setting editable: false causes the summary to be uneditable.
Post by: TeeJT on July 25, 2016, 08:50:30 pm
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?
Title: Re: Setting editable: false causes the summary to be uneditable.
Post by: paramvir 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);
},