Author Topic: Edit Fields in detailModel  (Read 1929 times)

emontes

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 8
    • View Profile
Edit Fields in detailModel
« on: May 03, 2016, 10:54:47 pm »
In the example http://paramquery.com/pro/demos/detail Is there a way to make the Fields Editable? I mean for example to edit the "Shipping Address" field direct in the "Address" Tab

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Edit Fields in detailModel
« Reply #1 on: May 04, 2016, 01:44:12 pm »
That's not supported inherently.

If you want to do it anyway, you would need to

1. change template.

Code: [Select]
<p><b>Shipping Address:</b><input type='text' value ="<#=ShipAddress#>" /></p>

2. Place a save button in the template or somewhere else.

3. call updateRow() manually upon click of save button.

Code: [Select]
  $(this).closest( '.pq-grid' ).pqGrid( 'updateRow', params );
« Last Edit: May 04, 2016, 01:50:33 pm by paramquery »