ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: SureshB on June 12, 2016, 11:17:32 am

Title: Inline edit select control, Immediate action when we change the value of select.
Post by: SureshB on June 12, 2016, 11:17:32 am
Hi

I am using Inline editing of rows. I have a select control with few options in a column.
When I change the value of the select, Is there any way to call a function immediately?

Actually after selecting an option from the select control and clicking outside of the cell is performing an action.
But I need to show a popup immediatly when I change the value of select.
Please let me know.

Thankyou.
Title: Re: Inline edit select control, Immediate action when we change the value of select.
Post by: paramvir on June 13, 2016, 09:17:21 am
Change event of editor select list can be bound in the column.editor.init callback.

Code: [Select]
init: function(ui){
var $sel = ui.$cell.find("select");
$sel.on('change', function(){
alert($(this).val());
});
}
Title: Re: Inline edit select control, Immediate action when we change the value of select.
Post by: SureshB on June 13, 2016, 12:18:12 pm

Ohh. Awesome. Easy & simple way , may be I have to try & get my self.

Thank you.