Author Topic: Inline edit select control, Immediate action when we change the value of select.  (Read 2476 times)

SureshB

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 32
    • View Profile
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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
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());
});
}

SureshB

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 32
    • View Profile

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

Thank you.