[Mono-bugs] [Bug 549263] New: ASP.NET TreeView nodes not expanding when clicked

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 22 13:03:50 EDT 2009


           Summary: ASP.NET TreeView nodes not expanding when clicked
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86-64
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: bosak.tomas at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.0 (KHTML, like Gecko) Chrome/ Safari/532.0

I have an ASP.NET TreeView control filled with data and every node contains
some child nodes. I'm using Visual Studio 2008 Pro with mono-vs to run it under
normal .NET 3.5SP1 or Mono Expanding of top level nodes works as
expected in MS.NET but it doesn't work under Mono, so under Mono I can't see
the child nodes.

ASP.NET codebehind with filling the TreeView:

ProductsDomain productsDomain = new ProductsDomain();
List<Category> categories = productsDomain.Categories;
TreeNode node, childNode;

foreach (Category category in categories.Where(q => q.ID_ParentCategory == 0))
    node = new TreeNode();
    node.Text = category.Title;
    node.Value = category.ID.ToString();
    node.PopulateOnDemand = true;
    node.Expanded = false;
    node.SelectAction = TreeNodeSelectAction.Expand;

    foreach (Category subCategory in categories.Where(q => q.ID_ParentCategory
== category.ID))
        childNode = new TreeNode();
        childNode.Text = subCategory.Title;
        childNode.Value = subCategory.ID.ToString();
        childNode.NavigateUrl = "~/Default.aspx?catID=" +
        childNode.PopulateOnDemand = true;
        childNode.SelectAction = TreeNodeSelectAction.Expand;



Reproducible: Always

Steps to Reproduce:
1. Run the code under mono with mono-vs
Actual Results:  
Nodes are not expanded so I can't see or click child nodes.

Expected Results:  
When clicking on node it will expand it's child nodes.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list