EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
March 29, 2024, 06:23:46 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
combogrid - Open grid on focus textbox
Pages: [
1
]
« previous
next »
Print
Author
Topic: combogrid - Open grid on focus textbox (Read 3476 times)
Shon
Newbie
Posts: 4
combogrid - Open grid on focus textbox
«
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
Re: combogrid - Open grid on focus textbox
«
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
Re: combogrid - Open grid on focus textbox
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...