EasyUI Forum
March 29, 2024, 06:23:46 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: combogrid - Open grid on focus textbox  (Read 3476 times)
Shon
Newbie
*
Posts: 4


View Profile Email
« 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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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');
    }
  })
})
Logged
Shon
Newbie
*
Posts: 4


View Profile Email
« Reply #2 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
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!