ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: cgDevelpper on February 13, 2018, 07:17:59 pm

Title: Re: How to set colModel's dataIndx to a nested JSON object?
Post by: cgDevelpper on February 13, 2018, 07:17:59 pm
Is there any similar method which should be called before edit? Because now editor starting with value [object Object]. I am dealing with similar case, but above that I need to support of batch editation.
Title: Re: How to set colModel's dataIndx to a nested JSON object?
Post by: paramvir on February 16, 2018, 12:00:32 pm
Correct value for editor can be extracted from nested JSON data ( available in ui.rowData ) in editor.init callback.

Code: [Select]
type: 'textbox',
init: function( ui ){
  //extract from ui.rowData and assign to ui.$editor
  ui.$editor.val( ui.rowData[][] );
}