Author Topic: Hidden field doesn't get updated  (Read 2887 times)

stoodin

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 85
    • View Profile
Hidden field doesn't get updated
« on: October 09, 2014, 07:20:29 pm »
I have a scenario:
1. All columns but one are not editable. One column is hidden and editable.
2. One columns is 'checkBoxSelection' type with selectionModel: {type: 'none', subtype:'incr', cbHeader:false, cbAll:true}
3. On row select I check the value of rowData['pq_rowselect'] and try to update the hidden field. All good by this point and I see the value has been updated in the devug

4. Now I try to (.selector).pqGrid("getChanges", { format: "byVal" }) and get NOTHING. I was trying to move the hidden cell to the Edit state then save, but it doesn't help

If I create a new field that is editable and not hidden everything works, but I need it to be hidden.

Could you advice me what to do?
Thank you

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6298
    • View Profile
Re: Hidden field doesn't get updated
« Reply #1 on: October 09, 2014, 08:32:05 pm »
hidden Non editable fields can be updated while call to updateRow by passing checkEditable as false.

http://paramquery.com/pro/api#method-updateRow
« Last Edit: October 09, 2014, 09:40:54 pm by paramquery »

stoodin

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 85
    • View Profile
Re: Hidden field doesn't get updated
« Reply #2 on: October 09, 2014, 10:53:21 pm »
Excellent!!!
Works now.