Search

You searched for the word(s): userid:619303

Matching Posts

  • Re: how to use Treeview Control in asp.net???

    It is probably this stupid thing: Have you added the control to page controls? page.controls.add(tv) If you create objects dynamically you have to tell ASP.NET to render them in the client page, if you don't do that controls just exist in server memory.
    Posted to Internet Explorer Web Controls (Forum) by Dmerayo on 8/12/2005
  • Re: Adding TreeNodes of TreeView Dynamically....

    Hi, You need to look for the node in the level you add it. Your example would be: TreeView tree = new TreeView(); TreeNode userTools = new TreeNode(); userTools.Text="User Tools"; tree.Nodes.Add(userTools); TreeNode userTool1 = new TreeNode(); userTool1.Text="User Tool 1"; tree.Nodes[tree.Nodes.IndexOf(userTools)].Nodes.Add(userTool1); // tree.Nodes[0].Nodes.Add(userTool1); // This also works TreeNode userTool2 = new TreeNode(); userTool2.Text="User Tool 2"; tree.Nodes[tree.Nodes.IndexOf(userTools
    Posted to Internet Explorer Web Controls (Forum) by Dmerayo on 8/10/2005
  • Re: Problems with TreeView and TreeNodeSrc property

    I've found out that the problem is that when event is launched the data from the TreeView is not available because I don't use ViewState (I cannot because the tree fully expanded is 3.5Mb of data with about 13000 nodes, and it is the small version, the big one has about 200K nodes) I will try some other way like loading whole tree as a server variable and get the expanded nodes from there, as I am not sure I can delete parts of the tree from ViewState. At least the tree data is static.
    Posted to Internet Explorer Web Controls (Forum) by Dmerayo on 8/10/2005
  • Problems with TreeView and TreeNodeSrc property

    Hello, I have an problem with TreeView IE control . I create a TreeView statically and add 15 nodes to it, every node has a reference to a xml file using TreeNodeSrc and TreeNodeXsltSrc , this far everything works fine. Then I control expand event on the server to keep track of expanded nodes (I don't want to use ViewState because it is a really BIG tree) but when I try to expand one of the nodes loaded from the xml files an exception is launched because that node does not exist as children of their
  • Re: TreeView and XML

    Hello, That error is quite tricky because it occurs both when the xml file is in wrong format or the control cannot find the xml file. I've found out that when you fill TreeNodeSrc and TreeNodeXsltSrc properties in a static treeview you need to write an URL (either relative or absolute) and when you create the component dynamically you have to use a real path in your computer. What I have not been able to do is to bind an xml file to a TreeNode dynamically. I hope it helps you. Regards, Diego Merayo
Page 1 of 1 (5 items)