Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Oddball ASP.NET TreeView / CSS problem

Oddball ASP.NET TreeView / CSS problem

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpc++css
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RichardGrimmer
    wrote on last edited by
    #1

    Hi guys, Have an issue with an asp.net Treeview control, for which some nodes are being populated on demand. I have 2 styles defined, one for SelectedNodeStyle-CssClass and one for NodeStyle-CssClass The problem I have is that when rendered, the nodes have an additional style added, so rather than class="standardNode", I'm actually getting class="standardNode ASPNet_Treeview2"..... This in and of itself isn't a huge issue - the nodes "look ok"....however, some are populated on demand when expanded - for the newly added nodes, the additional style is omitted, meaning I end up with class="standardNode"......so my nodes look different... I've googled myself dry on this one - anybody have any clues or ideas for a workaround - come on, don't be shy - any idea will be considered!

    C# has already designed away most of the tedium of C++.

    M 1 Reply Last reply
    0
    • R RichardGrimmer

      Hi guys, Have an issue with an asp.net Treeview control, for which some nodes are being populated on demand. I have 2 styles defined, one for SelectedNodeStyle-CssClass and one for NodeStyle-CssClass The problem I have is that when rendered, the nodes have an additional style added, so rather than class="standardNode", I'm actually getting class="standardNode ASPNet_Treeview2"..... This in and of itself isn't a huge issue - the nodes "look ok"....however, some are populated on demand when expanded - for the newly added nodes, the additional style is omitted, meaning I end up with class="standardNode"......so my nodes look different... I've googled myself dry on this one - anybody have any clues or ideas for a workaround - come on, don't be shy - any idea will be considered!

      C# has already designed away most of the tedium of C++.

      M Offline
      M Offline
      Morgs Morgan
      wrote on last edited by
      #2

      Firstly it's a good idea to post a css problem question on the css forum there are experts who visit that forum and can answer this question in a split second. Either way, i don't seem to understand your question, what are the CssClass names for: - SelectedNodeStyle-CssClass - NodeStyle-CssClass A quick fix would be to see what styling ASPNet_Treeview2 has and include that on your standardNode. Good luck, Morgs

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups