EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sky-t on November 19, 2019, 08:11:30 AM



Title: [SOLVED] Get Keyup in combogrid
Post by: sky-t on November 19, 2019, 08:11:30 AM
Hi there,

how can we detect the keystrokes from user in a combogrid (textbox of it)?
 



Thanks


Title: Re: Get Keyup in combogrid
Post by: jarry on November 19, 2019, 11:44:33 PM
Try this code to listen to the 'keyup' event on the inputing box.
Code:
$('#cg').combogrid({
    inputEvents: $.extend({}, $.fn.combogrid.defaults.inputEvents, {
        keyup: function(e){
            console.log(e.which)
        }
    })
})


Title: Re: Get Keyup in combogrid
Post by: sky-t on November 20, 2019, 03:35:18 AM
Hi jarry,


works great - Thank you!!!