EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sumi on June 16, 2014, 02:20:01 AM



Title: Catch End Of Selection Or Close on Combogrid
Post by: sumi on June 16, 2014, 02:20:01 AM
How can I catch the event that combogrid selection finished, when multiple selection possible.

My intention is to dynamically draw a table rows and a total row based on the selected items from combo grid.

I can append a table row each time one item is selected. But for the total row I would like to catch the end of selection.

Any help / ideas appreciated..

I tried onblur like this but not working.

Code:
 $("#invoice_ids").combogrid().blur(function(){  
        alert("onblur"); 
    }); 


Title: Re: Catch End Of Selection Or Close on Combogrid
Post by: stworthy on June 16, 2014, 07:23:35 AM
The 'onSelect' event fires when the user selects a row.
Code:
$('#cg').combogrid({
  onSelect:function(row){
    //...
  }
});
If you want to bind the 'blur' event on the text box, try this:
Code:
$('#cg').combogrid('textbox').bind('blur', function(){
  //...
});


Title: Re: Catch End Of Selection Or Close on Combogrid
Post by: sumi on June 16, 2014, 11:25:10 PM
Thank you .

I did it without blur.  :)