EasyUI Forum
May 18, 2024, 01:39:25 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: why I can't use setValue to set the combotree init value?  (Read 4996 times)
cdtuql
Newbie
*
Posts: 26


View Profile Email
« 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


View Profile Email
« 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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!