Author Topic: Change background color for Editable cells  (Read 344 times)

vijay

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 106
    • View Profile
Change background color for Editable cells
« on: June 03, 2026, 05:36:23 pm »
We want to apply a background color to editable cells and implement this logic at a generic level rather than configuring it for each individual grid.

In pqGrid, the `editable` property can be defined in two ways:

1. Directly as `true`
   editable: true

2. Conditionally based on row data

   editable: function (ui) {
       if (ui.rowData.isLocked == 1) {
           return true;
       }
       return false;
   }

Could you please suggest a generic approach to identify editable cells and apply a background color accordingly, regardless of how the `editable` property is defined?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6552
    • View Profile
Re: Change background color for Editable cells
« Reply #1 on: June 03, 2026, 08:57:35 pm »
Please check the styling section of this example:

https://paramquery.com/pro/demos/readonly_cells