EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 07, 2024, 08:04:48 PM
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
>
Set Local Data for combobox Editor In Editable Data Grid
Pages: [
1
]
« previous
next »
Print
Author
Topic: Set Local Data for combobox Editor In Editable Data Grid (Read 8308 times)
arma
Full Member
Posts: 110
Set Local Data for combobox Editor In Editable Data Grid
«
on:
October 23, 2013, 09:08:42 PM »
How to use local data for combobox in editable data grid ? I have an array data variable that needs to put to combobox.
<th field="username" width="150" align="center" data-options="
editor:{
type:'combobox',
options:{
valueField:'username',
textField:'fullname',
data: [
putting js variable array here does not work
],
required:false
}
}">User</th>
<scriptt>
var mydata = [{some:data},{another:data}];
</script>
Logged
arma
Full Member
Posts: 110
Re: Set Local Data for combobox Editor In Editable Data Grid
«
Reply #1 on:
October 24, 2013, 04:51:48 PM »
SOLVED.
Instead of using data-options attribute in <th>, i've changed it to use js code. So local data can be assigned from variable.
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...