EasyUI Forum
September 14, 2025, 06:59:20 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: need help with keyHandler properties in combogrid.  (Read 7787 times)
Opan Mustopah
Full Member
***
Posts: 164


Indonesia


View Profile Email
« on: March 24, 2015, 03:12:19 AM »

hello again,

i have a problem using keyHandler properties in combogrid.
here is my code:

Code:
 <div class='fourth'>
            <div class='div-form'>
              <label>Route Assignments</label>
              <div>
                <input class="easyui-combogrid mc" data-options="prompt: &#39;Route Assignments&#39;, url: &#39;/nst_lookup/nst_lcg_ra&#39;, mode: &#39;remote&#39;, method: &#39;get&#39;, queryParams:{type:&#39;ra&#39;}, panelWidth: 700, idField: &#39;ra_id&#39;, textField: &#39;ra_id&#39;, tipPosition: &#39;top&#39;, fitColumns:true, keyHandler: {enter: function(e){test();}}, onShowPanel:function(){return rowHeight(this);}, columns: [[{field: &#39;ra_id&#39;, width: 100,sortable:true},{field: &#39;hawb_list&#39;, width: 255,sortable:true},{field: &#39;mvo_ship_id_list&#39;, width: 255,sortable:true},{field: &#39;shipping_invoice_list&#39;, 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:

Code:
Uncaught TypeError: Cannot read property 'call' of undefined


is my code wrong?

many thanks for the answer.
Logged

-- Bajak Otak --
*** Sorry for my bad english :3 ***
--JeasyUI version 1.4--
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 24, 2015, 07:46:09 AM »

Please use the code below instead.
Code:
$('#cc').combogrid({
keyHandler: $.extend({}, $.fn.combogrid.defaults.keyHandler, {
enter: function(e){
//...
}
})
})
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!