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. treeview node color change in click [modified]

treeview node color change in click [modified]

Scheduled Pinned Locked Moved ASP.NET
javascriptsysadmin
3 Posts 3 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.
  • S Offline
    S Offline
    Sonia Gupta
    wrote on last edited by
    #1

    in the treeview , at runtime , i want to change the font color of the treenode , in javascript , how should i do it , it is working very fine , in the server side, but this leads to postback.

    Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

    modified on Sunday, April 6, 2008 4:08 AM

    C N 2 Replies Last reply
    0
    • S Sonia Gupta

      in the treeview , at runtime , i want to change the font color of the treenode , in javascript , how should i do it , it is working very fine , in the server side, but this leads to postback.

      Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

      modified on Sunday, April 6, 2008 4:08 AM

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You will need to handle the event in javascript and set the css for the element that paints the node.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      • S Sonia Gupta

        in the treeview , at runtime , i want to change the font color of the treenode , in javascript , how should i do it , it is working very fine , in the server side, but this leads to postback.

        Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

        modified on Sunday, April 6, 2008 4:08 AM

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        Look at the page source and find out how tree-view is getting rendered. Get those elements using JS and set the style property.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

        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