EasyUI Forum
September 13, 2025, 11:48:15 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: easyui-combotree  (Read 7338 times)
rezzonico
Full Member
***
Posts: 186


View Profile
« on: March 14, 2014, 07:13:08 AM »

Hi all,

I have a form. One of the field is a easyui-combotree.

Code:
<label>Asset:</label>
<select class="easyui-combotree" name="Asset" data-options="url:'tree.cgi?Asset=......'">
</select>

I want to initialize the combotree value.
Since the combotree is very large I do not want to output all the nodes but only a subset.
To this purpose I think that a possible solution is to pass the variable "Asset" to the program "tree.cgi" and output only the involved nodes.

How can I pass the variable "Asset" to the program tree.cgi ?
Is this the correct solution ?

Thanks.
Michelangelo
« Last Edit: March 15, 2014, 03:46:34 PM by rezzonico » Logged
rezzonico
Full Member
***
Posts: 186


View Profile
« Reply #1 on: March 20, 2014, 01:28:26 AM »

Hi all,

I think I have found the correct solution.
I call the combotree (and pass the variable Asset) after loading the form:

Code:
$('#fm').form('load',row);
$('#Asset').combotree('reload', 'tree.cgi?Asset='+row.Asset);

In the program "tree.cgi" I use a recursive function in order to output only the involved nodes.
All works as expected.
« Last Edit: March 20, 2014, 02:16:01 AM by rezzonico » 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!