ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: emontes on May 03, 2016, 10:54:47 pm

Title: Edit Fields in detailModel
Post by: emontes 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
Title: Re: Edit Fields in detailModel
Post by: paramvir 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 );