EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: thecyberzone on February 12, 2015, 09:59:30 PM



Title: onBlur and onFoucs event for the column editor of a datagrid
Post by: thecyberzone on February 12, 2015, 09:59:30 PM
As focus is not available in editable datagrid row or individual cell of datagrid, is there any way to extend datagrid to emaluate onBlur and onFocus event of datagrid row as well as for individual cell ?


Title: Re: onBlur and onFoucs event for the column editor of a datagrid
Post by: Opan Mustopah on February 13, 2015, 07:37:11 PM
please try oBeginEdit event, just bind the editor with blur event jquery.

ex:

Code:
var ed = $(this).datagrid('getEditor',{index:index,field:'test'}
$(ed.target).textbox('textbox').bind('blur',function(e){
  alert('test');
})