May 05, 2010, 3:09 PM
[CLOSED] adding handler listener in codebehind
I am doing an async treepanel until I get to the below code to add my leafs.
My basic problem is that the handler here is passing a dom element of TabDetails which is my tabpanel but it is lacking all the methods to call in this instance. so I can't do a .getComponent or an .add on the tabpanel.
How do I need to write this when creating the node from my webservice?
My basic problem is that the handler here is passing a dom element of TabDetails which is my tabpanel but it is lacking all the methods to call in this instance. so I can't do a .getComponent or an .add on the tabpanel.
How do I need to write this when creating the node from my webservice?
TreeNode Node = new TreeNode();
Node.Text = dr["NAME"].ToString();
Node.Leaf = true;
Node.NodeID = node + "_N_" + dr["NAME"].ToString();
Node.Listeners.DblClick.Handler = "addTab(#{TabDetails},'" + dr["PROJECTID"].ToString() + "','" + dr["NAME"].ToString() + "','projectDetails?id=" + dr["PROJECTID"].ToString() + "')";
nodes.Add(Node);