0

Is there a "simple/elegant" way to set one of the column headers (all others can be constant) of a jqGrid subgrid based on a value of one of the cells from the row it's detailing from the main grid?

Prethen
  • 269
  • 1
  • 11

1 Answers1

1

Not sure if there is an event you can hook into when the subgrid gets displayed, but it appears it's possible to change the column label with the following:

jQuery("#grid1").jqGrid('setLabel', 0, 'NewLabel');

Taken from: https://stackoverflow.com/a/4448454/109456

Community
  • 1
  • 1
Matt Klinker
  • 773
  • 5
  • 18