Changing Icon on TreePanel node

  1. #1

    Changing Icon on TreePanel node

    i use the code

    campNode.IconFile = "~/blueIco.png";

    to change the IconFile in the code behind, the images are 16x16, but they do not load.

    is there another way to change the Icon, or possibly change the color of the text for the node.

    Thanks


  2. #2

    RE: Changing Icon on TreePanel node

    fixed issue, ~/ is actually put into the link causing the error

    campNode.IconFile = "Resources/redIco.png";

Similar Threads

  1. Changing TreePanel background color
    By wexman in forum 1.x Help
    Replies: 3
    Last Post: Apr 06, 2011, 2:35 PM
  2. [CLOSED] Treegrid Node Icon
    By sharif in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 23, 2010, 12:11 PM
  3. Dynamically changing Treepanel other Treepanel
    By airforcz in forum 1.x Help
    Replies: 0
    Last Post: Jun 16, 2010, 8:33 AM
  4. [CLOSED] [1.0] TreePanel remove node - icon changes
    By danielg in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 22, 2010, 10:38 AM
  5. TreePanel:Copying from one node to another node using drag and drop
    By eighty20 in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 25, 2009, 7:48 AM

Posting Permissions