treeViewAdapter and ShowExpandCollapse?

Last post 10-24-2006 8:38 PM by bitbucket. 4 replies.

Sort Posts:

  • treeViewAdapter and ShowExpandCollapse?

    09-09-2006, 9:52 PM
    • Member
      45 point Member
    • bitbucket
    • Member since 07-07-2006, 12:55 AM
    • Posts 9

    i have a treeview on which i've set ShowExpandCollapse="false", but i still get

    <span class="AspNet-TreeView-Collapse" onclick="ExpandCollapse__AspNetTreeView(this)">&nbsp;</span>

    rendered on the page. i've quickly looked thru the code, and it doesn't seem to checking the property?

    thanx...!

  • Re: treeViewAdapter and ShowExpandCollapse?

    09-10-2006, 10:39 AM
    • Contributor
      3,298 point Contributor
    • Russ Helfand
    • Member since 09-14-2005, 6:22 PM
    • Groovybits.com
    • Posts 741
    Good catch.  I'll add it to the to-do list for the next update.
    Russ Helfand
    Groovybits.com
  • Crying [:'(] Re: treeViewAdapter and ShowExpandCollapse?

    10-24-2006, 2:30 PM
    • Member
      45 point Member
    • bitbucket
    • Member since 07-07-2006, 12:55 AM
    • Posts 9
    just installed beta 3.....still no love on this issue...? [:'(]
  • Re: treeViewAdapter and ShowExpandCollapse?

    10-24-2006, 7:40 PM
    • Contributor
      3,298 point Contributor
    • Russ Helfand
    • Member since 09-14-2005, 6:22 PM
    • Groovybits.com
    • Posts 741

    Sorry, this one slipped past me.

    Let's try to work together here to see if there might be a way to arrange the CSS to accomplish the same goal.

    Can you describe your situation or provide a simplified version that I could run locally?

    Russ Helfand
    Groovybits.com
  • Re: treeViewAdapter and ShowExpandCollapse?

    10-24-2006, 8:38 PM
    • Member
      45 point Member
    • bitbucket
    • Member since 07-07-2006, 12:55 AM
    • Posts 9
    no biggie.

    i've already tried a bunch of css stuff, but ended up modifying the code in TreeViewAdapter.vb:

    Private Function IsExpandable(ByVal item As TreeNode) As Boolean
            Dim tv As TreeView = CType(Control, TreeView)
            Return (HasChildren(item) OrElse ((Not IsNothing(item)) AndAlso item.PopulateOnDemand)) And tv.ShowExpandCollapse
    End Function

    dunno if it's valid in the whole scheme of things, but it works for me - just sucks to have to keep track of and re-do it on new version of the adapters.

Page 1 of 1 (5 items)