EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 08, 2024, 02:46:54 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
>
Remote ComboGrid Trigger on Set Value
Pages: [
1
]
« previous
next »
Print
Author
Topic: Remote ComboGrid Trigger on Set Value (Read 6998 times)
arma
Full Member
Posts: 110
Remote ComboGrid Trigger on Set Value
«
on:
June 12, 2016, 07:14:05 PM »
Hi,
I have an empty remote combogrid and when typing some it could load remote data and match perfectly.
But if i setValue() programatically, combogrid does not send 'q' parameter just like when typing manually.
It only show id as a result of setValue(), not the textfield.
How to trigger it when doing setValue ?
Thanks.
«
Last Edit: June 12, 2016, 07:25:04 PM by arma
»
Logged
jarry
Administrator
Hero Member
Posts: 2273
Re: Remote ComboGrid Trigger on Set Value
«
Reply #1 on:
June 13, 2016, 08:27:23 AM »
Please try this code.
Code:
var cc = $('#cc');
cc.combogrid('setValue','q');
cc.combogrid('options').keyHandler.query.call(cc[0],'q');
Logged
arma
Full Member
Posts: 110
Re: Remote ComboGrid Trigger on Set Value
«
Reply #2 on:
June 13, 2016, 06:46:44 PM »
Thank you so much jarry, it works good.
Will it be fine if it becomes combogrid method for simplificatition ?
Code:
$('#cc').combogrid('setValue','q').combogrid('query');
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...