Author Topic: PQGrid Checkbox Selection Hide  (Read 2178 times)

neetish

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 10
    • View Profile
PQGrid Checkbox Selection Hide
« on: November 09, 2015, 07:44:28 pm »
Hey All,
I'm using PQGrid Pro version , So in my pqgrid , in column model the type is checkbox selection , but then in the table I do not want the checkbox for first two rows , How can I achieve this through PQgrid .
Below is the link to my PQgrid
http://imgur.com/eH1KP2W
So , for the first two rows , I do not want checkbox

Can you please help me ?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: PQGrid Checkbox Selection Hide
« Reply #1 on: November 09, 2015, 10:33:15 pm »
It can be done by overriding the default cell checkbox renderer by your own column.render callback for first 2 rows.

Code: [Select]
column.render = function( ui ){
  if ( ui.rowIndx < 2 ){
    return "";
  }
}
« Last Edit: November 10, 2015, 11:56:30 am by paramquery »