1

I am using w2ui grid in-line edit with list and many other stuff.

How can I listen to the onselect event of an element ?

$('#grid').w2grid({
     name: 'grid',
     columns: [
        {
             field: 'fieldname',caption: 'caption',sortable: true,
             editable: {
                 type: 'list',
                 items: people,
                 showAll: true 
                }           
             }
     ],....    
Gonzalo Quero
  • 3,303
  • 18
  • 23
Ridvan Shaikh
  • 152
  • 1
  • 10

1 Answers1

0

Try like below and visit the link for detailed information.

w2ui.grid.on('change', function(event) {
    console.log(event);
});

OR

You can add this during grid creation as well.

$('#grid').w2grid({
    name    : 'grid',
    // . . . . . . . 
    onChange: function(event) {
        console.log(event);
    }        
});

http://w2ui.com/web/docs/w2grid.onChange

Venkat.R
  • 7,420
  • 5
  • 42
  • 63