Author Topic: Row Editable  (Read 2294 times)

bsolteam

  • Pro Deluxe
  • Full Member
  • *
  • Posts: 107
    • View Profile
Row Editable
« on: February 20, 2017, 05:48:20 pm »
Hi Team,
      We are using param query grid where each grid contains 40-50 columns. I need to make particular row editable based on some conditions. if i use editable callback function it will be very difficult to add it for all the columns and condition i need to put it in all the place.

I can use this event $( ".selector" ).pqGrid( "option", "editable", function( ui ){});

To be simple how to make row editable by using rowIndx ??. so that i can make entire row editable

Kindly suggest

Thanks




paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6260
    • View Profile
Re: Row Editable
« Reply #1 on: February 21, 2017, 10:01:40 am »
rowIndx is a property of ui.

Code: [Select]
editable: function( ui ){
  if ( some condition based on ui.rowIndx ){
    return true;
  }
  else{
    return false;
  }
}