Author Topic: Checkbox column and summary row  (Read 2474 times)

wmwa

  • Pro Economy
  • Newbie
  • *
  • Posts: 19
    • View Profile
Checkbox column and summary row
« on: June 04, 2015, 12:38:08 am »
I specialize in strange combinations of things.

I have a grid with a checkbox column, but also a summary row like in your JSON Summary example. Is there a way to tell pqGrid not to show the checkbox in the summary row?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Checkbox column and summary row
« Reply #1 on: June 04, 2015, 03:02:25 pm »
1) Add some property to the summary rows e.g., nochk: true to distinguish them from main grid rows.

2) Implement render callback for the checkbox column.

Code: [Select]
render: function(ui){
if ( ui.rowData.nochk ){
return "";
}
}