Title: need help with keyHandler properties in combogrid.
Post by: Opan Mustopah on March 24, 2015, 03:12:19 AM
hello again, i have a problem using keyHandler properties in combogrid. here is my code: <div class='fourth'> <div class='div-form'> <label>Route Assignments</label> <div> <input class="easyui-combogrid mc" data-options="prompt: 'Route Assignments', url: '/nst_lookup/nst_lcg_ra', mode: 'remote', method: 'get', queryParams:{type:'ra'}, panelWidth: 700, idField: 'ra_id', textField: 'ra_id', tipPosition: 'top', fitColumns:true, keyHandler: {enter: function(e){test();}}, onShowPanel:function(){return rowHeight(this);}, columns: [[{field: 'ra_id', width: 100,sortable:true},{field: 'hawb_list', width: 255,sortable:true},{field: 'mvo_ship_id_list', width: 255,sortable:true},{field: 'shipping_invoice_list', width: 255,sortable:true}]]" id="ra_id" name="m_ra_dr_a[ra_id]" style="width: 100%; height: 30px" type="text" /> </div> </div> </div>
and this error occured: Uncaught TypeError: Cannot read property 'call' of undefined
is my code wrong? many thanks for the answer.
Title: Re: need help with keyHandler properties in combogrid.
Post by: stworthy on March 24, 2015, 07:46:09 AM
Please use the code below instead. $('#cc').combogrid({ keyHandler: $.extend({}, $.fn.combogrid.defaults.keyHandler, { enter: function(e){ //... } }) })
|