EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Shon on July 16, 2018, 05:05:24 AM



Title: combogrid - Open grid on focus textbox
Post by: Shon on July 16, 2018, 05:05:24 AM
Hello,

is there a way to open the grid when focusing the combo textbox?
Currently, grid is opened only when clicking the dropdown button.

Thank you very much,
Shon


Title: Re: combogrid - Open grid on focus textbox
Post by: stworthy on July 16, 2018, 08:13:46 AM
You can attach the 'focus' event handler on the inputing box.
Code:
$('#cg').combogrid({
  inputEvents: $.extend({},$.fn.combogrid.defaults.inputEvents,{
    focus: function(e){
      $(e.data.target).combogrid('showPanel');
    }
  })
})


Title: Re: combogrid - Open grid on focus textbox
Post by: Shon on July 17, 2018, 10:44:03 PM
Thank you very much my friend, works great!
I didnt see it on the documents (showPanel method not exist in the document), are there more documents?

Great Library!

Thank you very much!
Shon