EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sky_proj on June 18, 2015, 07:45:41 AM



Title: problem using onblur on easyui-combobox
Post by: sky_proj on June 18, 2015, 07:45:41 AM
I have problem, this code doesn't work on easyui 1.4.2, but work on 1.3.2, whats wrong with my code..?
$(function(){
      var tb = $('#addfaktur1_bukti').combobox('textbox');
      tb.bind('blur',function(e){
         var deptpjx   =$('#addfaktur1_dept').combobox('getText');
         var gdgpjx   =$("#addfaktur1_kdgd").combobox("getText");      
         $('#addfaktur1_kodeitem').combobox({
            onBeforeLoad: function(param){
               param.isi = 'kodeitem';
               param.gdgpj  = gdgpjx;
               param.deptpj = deptpjx;
            },
            onSelect: function(rec){
            },
            delay:500,
            mode:'remote',
            url:'tranFunc.php',
            valueField:'text',//id aslinya
            textField:'text',
            panelWidth: 350,
            panelHeight: '200', //bisa 'auto'
            formatter: FormatKdsup
         });         
      });
});


Title: Re: problem using onblur on easyui-combobox
Post by: jarry on June 18, 2015, 11:55:15 PM
The 'blur' event fires successfully. Please refer to this example http://jsfiddle.net/ucqvrcn1/


Title: Re: problem using onblur on easyui-combobox
Post by: sky_proj on June 20, 2015, 09:37:51 PM
Ok thanks