ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: mikep on July 11, 2024, 05:46:17 pm

Title: onChange of select
Post by: mikep on July 11, 2024, 05:46:17 pm
How can I trigger the onchange event of a select item to get the selected value and the rowData for that row? Should i use editor?

{
title: "Actions",
editor: { type: "select", options: ["","Action 1 for this row...","Action 2 for this row..."] }
}
Title: Re: onChange of select
Post by: paramvir on July 12, 2024, 02:17:42 pm
There is editor.getData callback to obtain selected value and rowData.

https://paramquery.com/pro/api#option-column-editor

Code: [Select]
getData: function( ui ){
  var val = ui.$cell.find('select').val();
  var rowData=  ui.rowData;
}