监听TreePanel的click事件
listeners:
{
click:function(node)
{
var id = node.id;
Ext.Ajax.request(
{
url:"",
method:"post",
timeout:60000,
success:function(response)
{
var res = response.responseText;
Ext.getCmp("小提示文本域组件id").setValue(res);;
},
params:
{
iarg0:id
}
});
}
}
不需要去请求后台,你的combox可以拿每个选项的id 当然也能拿每个id对应的值,用combo的getRawValue(),就可以得到你想要的值