EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 18, 2024, 01:39:25 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
>
why I can't use setValue to set the combotree init value?
Pages: [
1
]
« previous
next »
Print
Author
Topic: why I can't use setValue to set the combotree init value? (Read 4996 times)
cdtuql
Newbie
Posts: 26
why I can't use setValue to set the combotree init value?
«
on:
January 01, 2015, 08:45:53 PM »
hi
when I use dialog 's onload event to init the combotree value ,but it did not success
onLoad:function(){
var node= $('#dishes_dishes_dishesclass_tree').tree('getSelected');
$('#itemclassNo').combotree('setValue',node.id);
},
but when i add a alert(node.id) before the setValue,It's success, like this:
onLoad:function(){
var node= $('#dishes_dishes_dishesclass_tree').tree('getSelected');
alert(node.id);
$('#itemclassNo').combotree('setValue',node.id);
},
how can i do ,thanks
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: why I can't use setValue to set the combotree init value?
«
Reply #1 on:
January 02, 2015, 08:25:19 AM »
How do you define your dialog and the content page? Please describe your question in more details, or provide an example to demonstrate your issue.
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...